InDesign2026
API 21.5.1.73
Collection of MenuElement

MenuElements

A collection of menu elements.

Properties

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

Methods

MenuElement

Returns the MenuElement with the specified index.

index Number The index.
MenuElement

Returns any MenuElement in the collection.

Number

Displays the number of elements in the MenuElement.

MenuElement[]

Returns every MenuElement in the collection.

MenuElement

Returns the first MenuElement in the collection.

MenuElement

Returns the MenuElement with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
MenuElement[]

Returns the MenuElements within the specified range.

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

Returns the last MenuElement in the collection.

MenuElement

Returns the middle MenuElement in the collection.

MenuElement

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

obj MenuElement The MenuElement whose index comes before the desired MenuElement.
MenuElement

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

obj MenuElement The index of the MenuElement that follows the desired MenuElement.
String

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

Object of 2

Properties elsewhere that hold a MenuElements.