Adobe InDesign CS3 (5.0) Object Model JS: Menus

InDesign CS3

Class

Menus

 A collection of menus.

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

Menu anyItem ()
Returns any Menu in the collection.

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

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

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

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

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

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

ParameterTypeDescription
namestringThe name.

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

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

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

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

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

ParameterTypeDescription
objMenuThe Menu whose index comes before the desired Menu.

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

ParameterTypeDescription
objMenuThe index of the Menu that follows the desired Menu.

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

Element of

Application.menus

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