Adobe InCopy CS5.5 (7.5) Object Model JS: Dropdowns

InCopy CS5.5

Class

Dropdowns

 A collection of dropdowns.

See also Dropdown.

QuickLinks

[], add, anyItem, count, everyItem, firstItem, item, itemByID, 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: varies)
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.

Array of Dropdown itemByRange (from: varies, to: varies)
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, 29-Apr-2012 v3.0.3iContents :: Index