InDesign2026
API 21.5.1.73
Collection of TableStyle

TableStyles

A collection of table styles.

Properties

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

Methods

TableStyle

Returns the TableStyle with the specified index.

index Number The index.
TableStyle

Creates a new TableStyle.

withProperties? Object Initial values for properties of the new TableStyle
TableStyle

Returns any TableStyle in the collection.

Number

Displays the number of elements in the TableStyle.

TableStyle[]

Returns every TableStyle in the collection.

TableStyle

Returns the first TableStyle in the collection.

TableStyle

Returns the TableStyle with the specified index or name.

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

Returns the TableStyle with the specified ID.

id Number The ID.
TableStyle

Returns the TableStyle with the specified name.

name String The name.
TableStyle[]

Returns the TableStyles within the specified range.

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

Returns the last TableStyle in the collection.

TableStyle

Returns the middle TableStyle in the collection.

TableStyle

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

obj TableStyle The TableStyle whose index comes before the desired TableStyle.
TableStyle

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

obj TableStyle The index of the TableStyle that follows the desired TableStyle.
String

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

Object of 3

Properties elsewhere that hold a TableStyles.