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

InCopy CS5.5

Class

MenuActions

 A collection of menu actions.

See also MenuAction.

QuickLinks

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

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

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

ParameterTypeDescription
indexnumberThe index.

MenuAction anyItem ()
Returns any MenuAction in the collection.

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

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

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

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

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

MenuAction itemByID (id: number)
Returns the MenuAction with the specified ID.

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

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

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

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

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

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

ParameterTypeDescription
objMenuActionThe MenuAction whose index comes before the desired MenuAction.

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

ParameterTypeDescription
objMenuActionThe index of the MenuAction that follows the desired MenuAction.

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

Element of

Application.menuActions

Jongware, 29-Apr-2012 v3.0.3iContents :: Index