InDesign2026
API 21.5.1.73
Collection of MenuSeparator

MenuSeparators

A collection of menu separators.

Properties

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

Methods

→ MenuSeparator

Returns the MenuSeparator with the specified index.

index Number The index.
→ MenuSeparator

Creates a new menu separator.

at? LocationOptions The location of the menu separator relative to the reference object or within the containing object.
reference? MenuElement The reference object. Note: Required when the at parameter specifies before or after.
withProperties? Object Initial values for properties of the new MenuSeparator
→ MenuSeparator

Returns any MenuSeparator in the collection.

→ Number

Displays the number of elements in the MenuSeparator.

→ MenuSeparator[]

Returns every MenuSeparator in the collection.

→ MenuSeparator

Returns the first MenuSeparator in the collection.

→ MenuSeparator

Returns the MenuSeparator with the specified index or name.

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

Returns the MenuSeparator with the specified ID.

id Number The ID.
→ MenuSeparator[]

Returns the MenuSeparators within the specified range.

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

Returns the last MenuSeparator in the collection.

→ MenuSeparator

Returns the middle MenuSeparator in the collection.

→ MenuSeparator

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

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

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

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

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

Object of 2

Properties elsewhere that hold a MenuSeparators.