InDesign2026
API 21.5.1.73
Collection of TextStyleRange

TextStyleRanges

A collection of text style ranges.

Properties

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

Methods

→ TextStyleRange

Returns the TextStyleRange with the specified index.

index Number The index.
→ TextStyleRange

Returns any TextStyleRange in the collection.

→ Number

Displays the number of elements in the TextStyleRange.

→ TextStyleRange[]

Returns every TextStyleRange in the collection.

→ TextStyleRange

Returns the first TextStyleRange in the collection.

→ TextStyleRange

Returns the TextStyleRange with the specified index or name.

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

Returns the TextStyleRanges within the specified range.

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

Returns the last TextStyleRange in the collection.

→ TextStyleRange

Returns the middle TextStyleRange in the collection.

→ TextStyleRange

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

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

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

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

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

Object of 20

Properties elsewhere that hold a TextStyleRanges.