InDesign2026
API 21.5.1.73
Collection of StaticText

StaticTexts

A collection of static text objects.

Properties

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

Methods

StaticText

Returns the StaticText with the specified index.

index Number The index.
StaticText

Creates a new StaticText.

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

Returns any StaticText in the collection.

Number

Displays the number of elements in the StaticText.

StaticText[]

Returns every StaticText in the collection.

StaticText

Returns the first StaticText in the collection.

StaticText

Returns the StaticText with the specified index or name.

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

Returns the StaticText with the specified ID.

id Number The ID.
StaticText[]

Returns the StaticTexts within the specified range.

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

Returns the last StaticText in the collection.

StaticText

Returns the middle StaticText in the collection.

StaticText

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

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

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

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

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

Object of 4

Properties elsewhere that hold a StaticTexts.