Edit in GitHubLog an issue

Menus

A collection of menus.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

Number count()

Displays the number of elements in the Menu.


Menu item( Mixed index )

Returns the Menu with the specified index or name.

Parameters

TypeNameDescription
Mixed
index
The index or name. Can accept: Long Integer or String.

Menu itemByName( String name )

Returns the Menu with the specified name.

Parameters

TypeNameDescription
String
name
The name.

Menu itemByRange( Mixed from, Mixed to )

Returns the Menus within the specified range.

Parameters

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

Menu firstItem()

Returns the first Menu in the collection.


Menu lastItem()

Returns the last Menu in the collection.


Menu middleItem()

Returns the middle Menu in the collection.


Menu previousItem( Menu obj )

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

Parameters

TypeNameDescription
Menu
obj
The index of the Menu that follows the desired Menu.

Menu nextItem( Menu obj )

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

Parameters

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

Menu anyItem()

Returns any Menu in the collection.


Menu everyItem()

Returns every Menu in the collection.


String toSource()

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


Menu []( Number index )

Returns the Menu with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.