MenuSeparators

A collection of menu separators.

Methods

MenuSeparatoradd ([at:
LocationOptions=AT_END ][, reference:
MenuElement][, withProperties:
Object])
Creates a new menu separator.

Parameter Type Description
at LocationOptions
:
BEFORE
AFTER
AT_END
AT_BEGINNING
UNKNOWN
The location of the menu separator relative to the reference object or within the containing object. (Optional) (default: 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 MenuSeparator (Optional)

MenuSeparatoranyItem ()
Returns any MenuSeparator in the collection.

number count ()
Displays the number of elements in the MenuSeparator.

Array of MenuSeparatoreveryItem ()
Returns every MenuSeparator in the collection.

MenuSeparatorfirstItem ()
Returns the first MenuSeparator in the collection.

MenuSeparatoritem (index:
any)
Returns the MenuSeparator with the specified index or name.

Parameter Type Description
index Long Integer
String
The index or name. Can accept: Long Integer or String.

MenuSeparatoritemByID (id:
number)
Returns the MenuSeparator with the specified ID.

Parameter Type Description
id number The ID.

MenuSeparatoritemByName (name:
string)
Returns the MenuSeparator with the specified name.

Parameter Type Description
name string The name.

Array of MenuSeparatoritemByRange (from:
any, to:
any)
Returns the MenuSeparators within the specified range.

Parameter Type Description
from MenuSeparator
Long Integer
String
The MenuSeparator, index, or name at the beginning of the range. Can accept: MenuSeparator, Long Integer or String.
to MenuSeparator
Long Integer
String
The MenuSeparator, index, or name at the end of the range. Can accept: MenuSeparator, Long Integer or String.

MenuSeparatorlastItem ()
Returns the last MenuSeparator in the collection.

MenuSeparatormiddleItem ()
Returns the middle MenuSeparator in the collection.

MenuSeparatornextItem (obj:
MenuSeparator)
Returns the MenuSeparator whose index follows the specified MenuSeparator in the collection.

Parameter Type Description
obj MenuSeparator The MenuSeparator whose index comes before the desired MenuSeparator.

MenuSeparatorpreviousItem (obj:
MenuSeparator)
Returns the MenuSeparator with the index previous to the specified index.

Parameter Type Description
obj MenuSeparator The index of the MenuSeparator that follows the desired MenuSeparator.

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

Element of:

Menu.menuSeparators
Submenu.menuSeparators

Leave a Comment

Previous post:

Next post: