Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Menu.MenuItemCollection.Add Method

Adds a new MenuItem to the collection.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Add(MenuItem) Adds a previously created MenuItem to the end of the current menu.
Public method Add(String) Adds a new MenuItem, to the end of the current menu, with a specified caption.
Public method Add(Int32, MenuItem) Adds a previously created MenuItem at the specified index within the menu item collection.
Public method Add(String, EventHandler) Adds a new MenuItem to the end of the current menu with a specified caption and a specified event handler for the Click event.
Public method Add(String, MenuItem[]) Adds a new MenuItem to the end of this menu with the specified caption, Click event handler, and items.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.