Adobe InDesign CS2 (4.0) Object Model JS: Texts

InDesign CS2

Class

Texts

 A collection of text objects.

QuickLinks

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

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

Text anyItem ()
Returns any Text in the collection.

number count ()
Displays the number of elements in the Text.

Array of Text everyItem ()
Returns every Text in the collection.

Text firstItem ()
Returns the first Text in the collection.

Text item (index: any)
Returns the Text with the specified index or name.

ParameterTypeDescription
indexLong
String
The index or name. Can accept: Long or String.

Text itemByName (name: string)
Returns the Text with the specified name.

ParameterTypeDescription
namestringThe name.

Array of Text itemByRange (from: any, to: any)
Returns the Texts within the specified range.

ParameterTypeDescription
fromLong
String
Text
The Text, index, or name at the beginning of the range. Can accept: Text, Long or String.
toLong
String
Text
The Text, index, or name at the end of the range. Can accept: Text, Long 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.

ParameterTypeDescription
objTextThe Text whose index comes before the desired Text.

Text previousItem (obj: Text)
Returns the Text with the index previous to the specified index.

ParameterTypeDescription
objTextThe index of the Text that follows the desired Text.

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

Element of

Cell.texts

Character.texts

Footnote.texts

InsertionPoint.texts

Line.texts

Note.texts

Paragraph.texts

Story.texts

Text.texts

TextColumn.texts

TextFrame.texts

TextPath.texts

TextStyleRange.texts

Word.texts

XMLElement.texts

Used in:

bool Book.packageForGoLive (location: File[, objects: Array of any])

bool Document.packageForGoLive (location: File[, objects: Array of any])

Jongware, 27-Jun-2010 v3.0.3dContents :: Index