Adobe InDesign CS2 (4.0) Object Model JS: TextEditboxes

InDesign CS2

Class

TextEditboxes

 A collection of text editboxes.

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

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

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

TextEditbox anyItem ()
Returns any TextEditbox in the collection.

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

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

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

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

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

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

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

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

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

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

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

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

ParameterTypeDescription
objTextEditboxThe TextEditbox whose index comes before the desired TextEditbox.

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

ParameterTypeDescription
objTextEditboxThe index of the TextEditbox that follows the desired TextEditbox.

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

Element of

BorderPanel.textEditboxes

DialogColumn.textEditboxes

DialogRow.textEditboxes

EnablingGroup.textEditboxes

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