TextStyleRanges

A collection of text style ranges.

Methods:

[], anyItem, count, everyItem, firstItem, item, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

TextStyleRange [] (index:Number)

Returns the TextStyleRange with the specified index.

Parameter

Type

Description

index

Number

The index.

TextStyleRange anyItem ()

Returns any TextStyleRange in the collection.

Number count ()

Displays the number of elements in the TextStyleRange.

TextStyleRange everyItem ()

Returns every TextStyleRange in the collection.

TextStyleRange firstItem ()

Returns the first TextStyleRange in the collection.

TextStyleRange item (index:Varies LongInteger String)

Returns the TextStyleRange with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

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

TextStyleRange itemByRange (from:Varies LongInteger TextStyleRange String, to:Varies LongInteger TextStyleRange String)

Returns the TextStyleRanges within the specified range.

Parameter

Type

Description

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 lastItem ()

Returns the last TextStyleRange in the collection.

TextStyleRange middleItem ()

Returns the middle TextStyleRange in the collection.

TextStyleRange nextItem (obj:TextStyleRange)

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

Parameter

Type

Description

obj

TextStyleRange

The TextStyleRange whose index comes before the desired TextStyleRange.

TextStyleRange previousItem (obj:TextStyleRange)

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

Parameter

Type

Description

obj

TextStyleRange

The index of the TextStyleRange that follows the desired TextStyleRange.

String toSource ()

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

Object of

Cell.textStyleRanges

Text.textStyleRanges

Character.textStyleRanges

Word.textStyleRanges

Line.textStyleRanges

TextColumn.textStyleRanges

Paragraph.textStyleRanges

TextStyleRange.textStyleRanges

InsertionPoint.textStyleRanges

TextFrame.textStyleRanges

Story.textStyleRanges

Endnote.textStyleRanges

EndnoteTextFrame.textStyleRanges

Change.textStyleRanges

TextPath.textStyleRanges

Note.textStyleRanges

Footnote.textStyleRanges

HiddenText.textStyleRanges

XMLElement.textStyleRanges

XmlStory.textStyleRanges