InDesign2026
API 21.5.1.73
Collection of MenuAction

MenuActions

A collection of menu actions.

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

→ MenuAction

Returns the MenuAction with the specified index.

index Number The index.
→ MenuAction

Returns any MenuAction in the collection.

→ Number

Displays the number of elements in the MenuAction.

→ MenuAction[]

Returns every MenuAction in the collection.

→ MenuAction

Returns the first MenuAction in the collection.

→ MenuAction

Returns the MenuAction with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
→ MenuAction

Returns the MenuAction with the specified ID.

id Number The ID.
→ MenuAction

Returns the MenuAction with the specified name.

name String The name.
→ MenuAction[]

Returns the MenuActions within the specified range.

from LongInteger | MenuAction | String The MenuAction, index, or name at the beginning of the range. Can accept: MenuAction, Long Integer or String.
to LongInteger | MenuAction | String The MenuAction, index, or name at the end of the range. Can accept: MenuAction, Long Integer or String.
→ MenuAction

Returns the last MenuAction in the collection.

→ MenuAction

Returns the middle MenuAction in the collection.

→ MenuAction

Returns the MenuAction whose index follows the specified MenuAction in the collection.

obj MenuAction The MenuAction whose index comes before the desired MenuAction.
→ MenuAction

Returns the MenuAction with the index previous to the specified index.

obj MenuAction The index of the MenuAction that follows the desired MenuAction.
→ String

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

Object of 1

Properties elsewhere that hold a MenuActions.