Tables

A collection of tables.

Methods:

add, count

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

Table add ([to:LocationOptions=LocationOptions], reference:Varies Cell Character InsertionPoint Line Paragraph Story Table Text TextColumn TextFrame Word TextStyleRange, withProperties:Object)

Creates a new table.

Parameter

Type

Description

to

LocationOptions

LocationOptions.AFTER

LocationOptions.AT_BEGINNING

LocationOptions.AT_END

LocationOptions.BEFORE

LocationOptions.UNKNOWN

The location of the new table relative to the reference object or within the container object. (Optional)

(default: LocationOptions.UNKNOWN)

reference

Cell

Character

InsertionPoint

Line

Paragraph

Story

Table

Text

TextColumn

TextFrame

Word

TextStyleRange

The reference object. Note: Required when the to value specifies before or after. Can accept: Table, TextFrame, Text, Character, Word, Line, Paragraph, TextColumn, InsertionPoint, Story, Cell or TextStyleRange. (Optional)

withProperties

Object

Initial values for properties of the new Table (Optional)

Number count ()

Displays the number of elements in the Table.

Object of

Cell.tables

Text.tables

Character.tables

Word.tables

Line.tables

TextColumn.tables

Paragraph.tables

TextStyleRange.tables

InsertionPoint.tables

TextFrame.tables

Story.tables