Adobe InDesign CS2 (4.0) Object Model JS: Characters

InDesign CS2

Class

Characters

 A collection of characters.

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

Character anyItem ()
Returns any Character in the collection.

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

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

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

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

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

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

ParameterTypeDescription
namestringThe name.

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

ParameterTypeDescription
fromCharacter
Long
String
The Character, index, or name at the beginning of the range. Can accept: Character, Long or String.
toCharacter
Long
String
The Character, index, or name at the end of the range. Can accept: Character, Long or String.

Character lastItem ()
Returns the last Character in the collection.

Character middleItem ()
Returns the middle Character in the collection.

Character nextItem (obj: Character)
Returns the Character whose index follows the specified Character in the collection.

ParameterTypeDescription
objCharacterThe Character whose index comes before the desired Character.

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

ParameterTypeDescription
objCharacterThe index of the Character that follows the desired Character.

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

Element of

Cell.characters

Character.characters

Footnote.characters

InsertionPoint.characters

Line.characters

Note.characters

Paragraph.characters

Story.characters

Text.characters

TextColumn.characters

TextFrame.characters

TextPath.characters

TextStyleRange.characters

Word.characters

XMLElement.characters

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