Click or drag to resize

MenuItemCollection Methods

The MenuItemCollection type exposes the following members.

Public methodAdd(MenuItem)
Adds a menu item to the specified collection based on its Order.
Public methodAdd(Command, Int32)
Add the specified command with the specified order.
Public methodAddRange(IEnumerableMenuItem)
Adds the specified menu items to the collection.
Public methodAddRange(IEnumerableCommand, Int32)
Adds the specified commands to the collection starting at the specified order.
Public methodAddSeparator
Adds the separator with the specified order.
Protected methodClearItems
Clears the items.
(Overrides CollectionTClearItems.)
Public methodGetSubmenu
Gets the submenu from the collection with the specified text, optionally creating one if not found.
Protected methodInsertItem
Inserts an menu item at the specified index
(Overrides CollectionTInsertItem(Int32, T).)
Protected methodRemoveItem
Removes the item at the specified index.
(Overrides CollectionTRemoveItem(Int32).)
Public methodTrim
Trims the items in this collection and all submenus.
See Also