InDesign Server2025
API 20.5.0.49
Collection of NestedStyle

NestedStyles

A collection of nested styles.

Properties

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

Methods

→ NestedStyle

Returns the NestedStyle with the specified index.

index Number The index.
→ NestedStyle

Creates a new NestedStyle.

withProperties? Object Initial values for properties of the new NestedStyle
→ NestedStyle

Returns any NestedStyle in the collection.

→ Number

Displays the number of elements in the NestedStyle.

→ NestedStyle[]

Returns every NestedStyle in the collection.

→ NestedStyle

Returns the first NestedStyle in the collection.

→ NestedStyle

Returns the NestedStyle with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
→ NestedStyle[]

Returns the NestedStyles within the specified range.

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

Returns the last NestedStyle in the collection.

→ NestedStyle

Returns the middle NestedStyle in the collection.

→ NestedStyle

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

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

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

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

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

Object of 12

Properties elsewhere that hold a NestedStyles.