InDesign2026
API 21.5.1.73
Collection of Word

Words

A collection of words.

Properties

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

Methods

→ Word

Returns the Word with the specified index.

index Number The index.
→ Word

Returns any Word in the collection.

→ Number

Displays the number of elements in the Word.

→ Word[]

Returns every Word in the collection.

→ Word

Returns the first Word in the collection.

→ Word

Returns the Word with the specified index or name.

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

Returns the Words within the specified range.

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

Returns the last Word in the collection.

→ Word

Returns the middle Word in the collection.

→ Word

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

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

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

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

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

Object of 20

Properties elsewhere that hold a Words.