Edit in GitHubLog an issue

TextStyleRanges

A collection of text style ranges.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

Number count()

Displays the number of elements in the TextStyleRange.


TextStyleRange item( Mixed index )

Returns the TextStyleRange with the specified index or name.

Parameters

TypeNameDescription
Mixed
index
The index or name. Can accept: Long Integer or String.

TextStyleRange itemByRange( Mixed from, Mixed to )

Returns the TextStyleRanges within the specified range.

Parameters

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

TextStyleRange firstItem()

Returns the first TextStyleRange in the collection.


TextStyleRange lastItem()

Returns the last TextStyleRange in the collection.


TextStyleRange middleItem()

Returns the middle TextStyleRange in the collection.


TextStyleRange previousItem( TextStyleRange obj )

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

Parameters

TypeNameDescription
TextStyleRange
obj
The index of the TextStyleRange that follows the desired TextStyleRange.

TextStyleRange nextItem( TextStyleRange obj )

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

Parameters

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

TextStyleRange anyItem()

Returns any TextStyleRange in the collection.


TextStyleRange everyItem()

Returns every TextStyleRange in the collection.


String toSource()

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


TextStyleRange []( Number index )

Returns the TextStyleRange with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.