MenuItemCollection Class |
Namespace: Eto.Forms
The MenuItemCollection type exposes the following members.
Name | Description | |
---|---|---|
Add(MenuItem) |
Adds a menu item to the specified collection based on its Order.
| |
Add(Command, Int32) |
Add the specified command with the specified order.
| |
AddRange(IEnumerableMenuItem) |
Adds the specified menu items to the collection.
| |
AddRange(IEnumerableCommand, Int32) |
Adds the specified commands to the collection starting at the specified order.
| |
AddSeparator |
Adds the separator with the specified order.
| |
ClearItems |
Clears the items.
(Overrides CollectionTClearItems.) | |
GetSubmenu |
Gets the submenu from the collection with the specified text, optionally creating one if not found.
| |
InsertItem |
Inserts an menu item at the specified index
(Overrides CollectionTInsertItem(Int32, T).) | |
RemoveItem |
Removes the item at the specified index.
(Overrides CollectionTRemoveItem(Int32).) | |
Trim |
Trims the items in this collection and all submenus.
|