Adobe InDesign CS4 (6.0) Object Model JS: StaticTexts

InDesign CS4

Class

StaticTexts

 A collection of static text objects.

QuickLinks

[], add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

StaticText [] (index: number)
Returns the StaticText with the specified index.

ParameterTypeDescription
indexnumberThe index.

StaticText add ([withProperties: Object])
Creates a new StaticText.

ParameterTypeDescription
withPropertiesObjectInitial values for properties of the new StaticText (Optional)

StaticText anyItem ()
Returns any StaticText in the collection.

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

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

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

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

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

StaticText itemByID (id: number)
Returns the StaticText with the specified ID.

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

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

ParameterTypeDescription
fromLong Integer
StaticText
String
The StaticText, index, or name at the beginning of the range. Can accept: StaticText, Long Integer or String.
toLong Integer
StaticText
String
The StaticText, index, or name at the end of the range. Can accept: StaticText, Long Integer or String.

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

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

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

ParameterTypeDescription
objStaticTextThe StaticText whose index comes before the desired StaticText.

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

ParameterTypeDescription
objStaticTextThe index of the StaticText that follows the desired StaticText.

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

Element of

BorderPanel.staticTexts

DialogColumn.staticTexts

DialogRow.staticTexts

EnablingGroup.staticTexts

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