Adobe InCopy CS6 (8.0) Object Model JS: Menus

InCopy CS6

Class

Menus

 A collection of menus.

See also Menu.

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 [] (index: number)
Returns the Menu with the specified index.

ParameterTypeDescription
indexnumberThe index.

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: varies)
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: varies, to: varies)
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, 29-Apr-2012 v3.0.3iContents :: Index