Texts

A collection of text objects.

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

Text [] (index:Number)

Returns the Text with the specified index.

Parameter

Type

Description

index

Number

The index.

Text anyItem ()

Returns any Text in the collection.

Number count ()

Displays the number of elements in the Text.

Text everyItem ()

Returns every Text in the collection.

Text firstItem ()

Returns the first Text in the collection.

Text item (index:Varies LongInteger String)

Returns the Text with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

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

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

Returns the Texts within the specified range.

Parameter

Type

Description

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

Returns the last Text in the collection.

Text middleItem ()

Returns the middle Text in the collection.

Text nextItem (obj:Text)

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

Parameter

Type

Description

obj

Text

The Text whose index comes before the desired Text.

Text previousItem (obj:Text)

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

Parameter

Type

Description

obj

Text

The index of the Text that follows the desired Text.

String toSource ()

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

Object of

Cell.texts

Text.texts

Character.texts

Word.texts

Line.texts

TextColumn.texts

Paragraph.texts

TextStyleRange.texts

InsertionPoint.texts

TextFrame.texts

Story.texts

Endnote.texts

EndnoteTextFrame.texts

Change.texts

TextPath.texts

Note.texts

Footnote.texts

HiddenText.texts

XMLElement.texts

XmlStory.texts