Adobe InDesign CS4 (6.0) Object Model JS: Dropdowns

InDesign CS4

Class

Dropdowns

 A collection of dropdowns.

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

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

ParameterTypeDescription
indexnumberThe index.

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

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

Dropdown anyItem ()
Returns any Dropdown in the collection.

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

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

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

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

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

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

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

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

ParameterTypeDescription
fromDropdown
Long Integer
String
The Dropdown, index, or name at the beginning of the range. Can accept: Dropdown, Long Integer or String.
toDropdown
Long Integer
String
The Dropdown, index, or name at the end of the range. Can accept: Dropdown, Long Integer or String.

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

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

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

ParameterTypeDescription
objDropdownThe Dropdown whose index comes before the desired Dropdown.

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

ParameterTypeDescription
objDropdownThe index of the Dropdown that follows the desired Dropdown.

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

Element of

BorderPanel.dropdowns

DialogColumn.dropdowns

DialogRow.dropdowns

EnablingGroup.dropdowns

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