InDesign Server2025
API 20.5.0.49
Collection of Text

Texts

A collection of text objects.

Properties

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

Methods

Text

Returns the Text with the specified index.

index Number The index.
Text

Returns any Text in the collection.

Number

Displays the number of elements in the Text.

Text[]

Returns every Text in the collection.

Text

Returns the first Text in the collection.

Text

Returns the Text with the specified index or name.

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

Returns the Texts within the specified range.

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

Returns the last Text in the collection.

Text

Returns the middle Text in the collection.

Text

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

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

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

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

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

Object of 20

Properties elsewhere that hold a Texts.