A collection of menu elements.
Methods
MenuElementanyItem ()
Returns any MenuElement in the collection.
number count ()
Displays the number of elements in the MenuElement.
Array of MenuElementeveryItem ()
Returns every MenuElement in the collection.
MenuElementfirstItem ()
Returns the first MenuElement in the collection.
MenuElementitem (index:
any)
Returns the MenuElement with the specified index or name.
| Parameter | Type | Description |
|---|---|---|
| index | Long Integer String |
The index or name. Can accept: Long Integer or String. |
MenuElementitemByName (name:
string)
Returns the MenuElement with the specified name.
| Parameter | Type | Description |
|---|---|---|
| name | string | The name. |
Array of MenuElementitemByRange (from:
any, to:
any)
Returns the MenuElements within the specified range.
| Parameter | Type | Description |
|---|---|---|
| from | MenuElement Long Integer String |
The MenuElement, index, or name at the beginning of the range. Can accept: MenuElement, Long Integer or String. |
| to | MenuElement Long Integer String |
The MenuElement, index, or name at the end of the range. Can accept: MenuElement, Long Integer or String. |
MenuElementlastItem ()
Returns the last MenuElement in the collection.
MenuElementmiddleItem ()
Returns the middle MenuElement in the collection.
MenuElementnextItem (obj:
MenuElement)
Returns the MenuElement whose index follows the specified MenuElement in the collection.
| Parameter | Type | Description |
|---|---|---|
| obj | MenuElement | The MenuElement whose index comes before the desired MenuElement. |
MenuElementpreviousItem (obj:
MenuElement)
Returns the MenuElement with the index previous to the specified index.
| Parameter | Type | Description |
|---|---|---|
| obj | MenuElement | The index of the MenuElement that follows the desired MenuElement. |
string toSource ()
Generates a string which, if executed, will return the MenuElement.