InDesign2026
API 21.5.1.73
Collection of TOCStyle

TOCStyles

A collection of TOC styles.

Properties

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

Methods

TOCStyle

Returns the TOCStyle with the specified index.

index Number The index.
TOCStyle

Creates a new TOCStyle.

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

Returns any TOCStyle in the collection.

Number

Displays the number of elements in the TOCStyle.

TOCStyle[]

Returns every TOCStyle in the collection.

TOCStyle

Returns the first TOCStyle in the collection.

TOCStyle

Returns the TOCStyle with the specified index or name.

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

Returns the TOCStyle with the specified ID.

id Number The ID.
TOCStyle

Returns the TOCStyle with the specified name.

name String The name.
TOCStyle[]

Returns the TOCStyles within the specified range.

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

Returns the last TOCStyle in the collection.

TOCStyle

Returns the middle TOCStyle in the collection.

TOCStyle

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

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

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

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

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

Object of 1

Properties elsewhere that hold a TOCStyles.