Submenus
QuickLinks
Properties
Property | Type | Access | Description |
---|---|---|---|
length | number | readonly | The number of objects in the collection. |
Methods
Instances
Submenu [] (index:
number)
Returns the Submenu with the specified index.
Parameter | Type | Description |
---|---|---|
index | number | The index. |
Submenu add (title:
string[, at:
LocationOptions=LocationOptions.AT_END][, reference:
MenuElement][, withProperties:
Object])
Creates a new submenu.
Parameter | Type | Description |
---|---|---|
title | string | The name of the Submenu for display in the user interface. The title includes any ampersand characters (&), which are used to tell the Windows OS to underline the following character in the name for use with the Alt key to navigate to a menu item. Double ampersands are used to display an actual ampersand character in the name. The Mac OS ignores and removes the extra ampersand characters. |
at | LocationOptions: LocationOptions.BEFORE LocationOptions.AFTER LocationOptions.AT_END LocationOptions.AT_BEGINNING LocationOptions.UNKNOWN | The location of the submenu relative to the reference object or within the containing object. (Optional) (default: LocationOptions.AT_END) |
reference | MenuElement | The reference object. Note: Required when the at parameter specifies before or after. (Optional) |
withProperties | Object | Initial values for properties of the new Submenu (Optional) |
Submenu anyItem ()
Returns any Submenu in the collection.
number count ()
Displays the number of elements in the Submenu.
Array of Submenu everyItem ()
Returns every Submenu in the collection.
Submenu firstItem ()
Returns the first Submenu in the collection.
Submenu item (index:
varies)
Returns the Submenu with the specified index or name.
Parameter | Type | Description |
---|---|---|
index | Long Integer String | The index or name. Can accept: Long Integer or String. |
Submenu itemByName (name:
string)
Returns the Submenu with the specified name.
Parameter | Type | Description |
---|---|---|
name | string | The name. |
Array of Submenu itemByRange (from:
varies, to:
varies)
Returns the Submenus within the specified range.
Parameter | Type | Description |
---|---|---|
from | Long Integer String Submenu | The Submenu, index, or name at the beginning of the range. Can accept: Submenu, Long Integer or String. |
to | Long Integer String Submenu | The Submenu, index, or name at the end of the range. Can accept: Submenu, Long Integer or String. |
Submenu lastItem ()
Returns the last Submenu in the collection.
Submenu middleItem ()
Returns the middle Submenu in the collection.
Submenu nextItem (obj:
Submenu)
Returns the Submenu whose index follows the specified Submenu in the collection.
Parameter | Type | Description |
---|---|---|
obj | Submenu | The Submenu whose index comes before the desired Submenu. |
Submenu previousItem (obj:
Submenu)
Returns the Submenu with the index previous to the specified index.
Parameter | Type | Description |
---|---|---|
obj | Submenu | The index of the Submenu that follows the desired Submenu. |
string toSource ()
Generates a string which, if executed, will return the Submenu.
Element of
Menu.submenus
Submenu.submenus
Jongware, 28-Apr-2012 v3.0.3h | Contents :: Index |