Adobe InCopy CS5 (7.0) Object Model JS: MenuElements

InCopy CS5

Class

MenuElements

 A collection of menu elements.

QuickLinks

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

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

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

ParameterTypeDescription
indexnumberThe index.

MenuElement anyItem ()
Returns any MenuElement in the collection.

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

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

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

MenuElement item (index: varies)
Returns the MenuElement with the specified index or name.

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

Array of MenuElement itemByRange (from: varies, to: varies)
Returns the MenuElements within the specified range.

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

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

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

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

ParameterTypeDescription
objMenuElementThe MenuElement whose index comes before the desired MenuElement.

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

ParameterTypeDescription
objMenuElementThe index of the MenuElement that follows the desired MenuElement.

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

Element of

Menu.menuElements

Submenu.menuElements

Jongware, 23-Mar-2011 v3.0.3dContents :: Index