Adobe InDesign CS3 (5.0) Object Model JS: MenuElements

InDesign CS3

Class

MenuElements

 A collection of menu elements.

QuickLinks

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

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

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: any)
Returns the MenuElement with the specified index or name.

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

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

ParameterTypeDescription
namestringThe name.

Array of MenuElement itemByRange (from: any, to: any)
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, 27-Jun-2010 v3.0.3dContents :: Index