InDesign2026
API 21.5.1.73
Collection of FlexObject

FlexObjects

A collection of flex objects.

Properties

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

Methods

FlexObject

Returns the FlexObject with the specified index.

index Number The index.
FlexObject

Creates a new flex object.

flexDescription? String The flex description to create the object from.
flexDestinationPage? Page The page on which to create the object.
destinationLayer? Layer The layer on which to create the Object. Uses active document layer by default
placePoint? Number[] | String[] unit The point where to place the object (only applicable if page is provided)
withProperties? Object Initial values for properties of the new FlexObject
FlexObject

Returns any FlexObject in the collection.

Number

Displays the number of elements in the FlexObject.

FlexObject[]

Returns every FlexObject in the collection.

FlexObject

Returns the first FlexObject in the collection.

FlexObject

Returns the FlexObject with the specified index or name.

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

Returns the FlexObject with the specified ID.

id Number The ID.
FlexObject

Returns the FlexObject with the specified name.

name String The name.
FlexObject[]

Returns the FlexObjects within the specified range.

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

Returns the last FlexObject in the collection.

FlexObject

Returns the middle FlexObject in the collection.

FlexObject

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

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

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

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

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

Object of 36

Properties elsewhere that hold a FlexObjects.