InDesign Server2025
API 20.5.0.49
Collection of Behavior

Behaviors

A collection of behavior objects.

Properties

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

Methods

→ Behavior

Returns the Behavior with the specified index.

index Number The index.
→ Behavior

Returns any Behavior in the collection.

→ Number

Displays the number of elements in the Behavior.

→ Behavior[]

Returns every Behavior in the collection.

→ Behavior

Returns the first Behavior in the collection.

→ Behavior

Returns the Behavior with the specified index or name.

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

Returns the Behavior with the specified ID.

id Number The ID.
→ Behavior

Returns the Behavior with the specified name.

name String The name.
→ Behavior[]

Returns the Behaviors within the specified range.

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

Returns the last Behavior in the collection.

→ Behavior

Returns the middle Behavior in the collection.

→ Behavior

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

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

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

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

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

Object of 7

Properties elsewhere that hold a Behaviors.