Adobe InDesign CS2 (4.0) Object Model JS: PercentEditboxes

InDesign CS2

Class

PercentEditboxes

 A collection of percent 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

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

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

PercentEditbox anyItem ()
Returns any PercentEditbox in the collection.

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

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

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

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

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

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

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

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

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

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

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

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

ParameterTypeDescription
objPercentEditboxThe PercentEditbox whose index comes before the desired PercentEditbox.

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

ParameterTypeDescription
objPercentEditboxThe index of the PercentEditbox that follows the desired PercentEditbox.

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

Element of

BorderPanel.percentEditboxes

DialogColumn.percentEditboxes

DialogRow.percentEditboxes

EnablingGroup.percentEditboxes

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