InDesign2026
API 21.5.1.73
Collection of Menu

Menus

A collection of menus.

Properties

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

Methods

→ Menu

Returns the Menu with the specified index.

index Number The index.
→ Menu

Returns any Menu in the collection.

→ Number

Displays the number of elements in the Menu.

→ Menu[]

Returns every Menu in the collection.

→ Menu

Returns the first Menu in the collection.

→ Menu

Returns the Menu with the specified index or name.

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

Returns the Menu with the specified name.

name String The name.
→ Menu[]

Returns the Menus within the specified range.

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

Returns the last Menu in the collection.

→ Menu

Returns the middle Menu in the collection.

→ Menu

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

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

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

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

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

Object of 1

Properties elsewhere that hold a Menus.