Words

A collection of words.

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

Word [] (index:Number)

Returns the Word with the specified index.

Parameter

Type

Description

index

Number

The index.

Word anyItem ()

Returns any Word in the collection.

Number count ()

Displays the number of elements in the Word.

Word everyItem ()

Returns every Word in the collection.

Word firstItem ()

Returns the first Word in the collection.

Word item (index:Varies LongInteger String)

Returns the Word with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

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

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

Returns the Words within the specified range.

Parameter

Type

Description

from

LongInteger

Word

String

The Word, index, or name at the beginning of the range. Can accept: Word, Long Integer or String.

to

LongInteger

Word

String

The Word, index, or name at the end of the range. Can accept: Word, Long Integer or String.

Word lastItem ()

Returns the last Word in the collection.

Word middleItem ()

Returns the middle Word in the collection.

Word nextItem (obj:Word)

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

Parameter

Type

Description

obj

Word

The Word whose index comes before the desired Word.

Word previousItem (obj:Word)

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

Parameter

Type

Description

obj

Word

The index of the Word that follows the desired Word.

String toSource ()

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

Object of

Cell.words

Text.words

Character.words

Word.words

Line.words

TextColumn.words

Paragraph.words

TextStyleRange.words

InsertionPoint.words

TextFrame.words

Story.words

Endnote.words

EndnoteTextFrame.words

Change.words

TextPath.words

Note.words

Footnote.words

HiddenText.words

XMLElement.words

XmlStory.words