MenuElements
A collection of menu elements.
Go to Property Listing | Method Listing
Methods:
[], anyItem, count, everyItem, firstItem, item, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
The number of objects in the collection. |
Method Listing
MenuElement [] (index:Number)
Returns the MenuElement with the specified index.
Parameter |
Type |
Description |
---|---|---|
index |
The index. |
MenuElement anyItem ()
Returns any MenuElement in the collection.
Number count ()
Displays the number of elements in the MenuElement.
MenuElement everyItem ()
Returns every MenuElement in the collection.
MenuElement firstItem ()
Returns the first MenuElement in the collection.
MenuElement item (index:Varies LongInteger String)
Returns the MenuElement with the specified index or name.
Parameter |
Type |
Description |
---|---|---|
index |
LongInteger |
The index or name. Can accept: Long Integer or String. |
MenuElement itemByRange (from:Varies LongInteger MenuElement String, to:Varies LongInteger MenuElement String)
Returns the MenuElements within the specified range.
Parameter |
Type |
Description |
---|---|---|
from |
LongInteger |
The MenuElement, index, or name at the beginning of the range. Can accept: MenuElement, Long Integer or String. |
to |
LongInteger |
The MenuElement, index, or name at the end of the range. Can accept: MenuElement, Long Integer or String. |
MenuElement lastItem ()
Returns the last MenuElement in the collection.
MenuElement middleItem ()
Returns the middle MenuElement in the collection.
MenuElement nextItem (obj:MenuElement)
Returns the MenuElement whose index follows the specified MenuElement in the collection.
Parameter |
Type |
Description |
---|---|---|
obj |
The MenuElement whose index comes before the desired MenuElement. |
MenuElement previousItem (obj:MenuElement)
Returns the MenuElement with the index previous to the specified index.
Parameter |
Type |
Description |
---|---|---|
obj |
The index of the MenuElement that follows the desired MenuElement. |
String toSource ()
Generates a string which, if executed, will return the MenuElement.
Object of
Menu.menuElements
Submenu.menuElements