InDesign Server2025
API 20.5.0.49
Collection of ObjectStyle

ObjectStyles

A collection of object styles.

Properties

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

Methods

ObjectStyle

Returns the ObjectStyle with the specified index.

index Number The index.
ObjectStyle

Creates a new ObjectStyle.

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

Returns any ObjectStyle in the collection.

Number

Displays the number of elements in the ObjectStyle.

ObjectStyle[]

Returns every ObjectStyle in the collection.

ObjectStyle

Returns the first ObjectStyle in the collection.

ObjectStyle

Returns the ObjectStyle with the specified index or name.

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

Returns the ObjectStyle with the specified ID.

id Number The ID.
ObjectStyle

Returns the ObjectStyle with the specified name.

name String The name.
ObjectStyle[]

Returns the ObjectStyles within the specified range.

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

Returns the last ObjectStyle in the collection.

ObjectStyle

Returns the middle ObjectStyle in the collection.

ObjectStyle

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

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

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

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

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

Object of 3

Properties elsewhere that hold a ObjectStyles.