InDesign Server2025
API 20.5.0.49
Collection of Table

Tables

A collection of tables.

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

→ Table

Returns the Table with the specified index.

index Number The index.
→ Table

Creates a new table.

to? LocationOptions The location of the new table relative to the reference object or within the container object.
reference? Character | EndnoteTextFrame | InsertionPoint | Line | Paragraph | Story | Table | Text | TextColumn | TextFrame | TextStyleRange | Word | XMLElement | XmlStory | Cell The reference object. Note: Required when the to value specifies before or after. Can accept: Table, XMLElement, XmlStory, TextFrame, EndnoteTextFrame, Text, InsertionPoint, TextStyleRange, Paragraph, TextColumn, Line, Word, Character, Story or Cell.
withProperties? Object Initial values for properties of the new Table
→ Table

Returns any Table in the collection.

→ Number

Displays the number of elements in the Table.

→ Table[]

Returns every Table in the collection.

→ Table

Returns the first Table in the collection.

→ Table

Returns the Table with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
→ Table

Returns the Table with the specified ID.

id Number The ID.
→ Table

Returns the Table with the specified name.

name String The name.
→ Table[]

Returns the Tables within the specified range.

from LongInteger | Table | String The Table, index, or name at the beginning of the range. Can accept: Table, Long Integer or String.
to LongInteger | Table | String The Table, index, or name at the end of the range. Can accept: Table, Long Integer or String.
→ Table

Returns the last Table in the collection.

→ Table

Returns the middle Table in the collection.

→ Table

Returns the Table whose index follows the specified Table in the collection.

obj Table The Table whose index comes before the desired Table.
→ Table

Returns the Table with the index previous to the specified index.

obj Table The index of the Table that follows the desired Table.
→ String

Generates a string which, if executed, will return the Table.

Object of 14

Properties elsewhere that hold a Tables.