Add Method

Menu.MenuItemCollection.Add Method

 

Adds a new MenuItem to the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

NameDescription
System_CAPS_pubmethodAdd(Int32, MenuItem)

Adds a previously created MenuItem at the specified index within the menu item collection.

System_CAPS_pubmethodAdd(MenuItem)

Adds a previously created MenuItem to the end of the current menu.

System_CAPS_pubmethodAdd(String)

Adds a new MenuItem, to the end of the current menu, with a specified caption.

System_CAPS_pubmethodAdd(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.

System_CAPS_pubmethodAdd(String, MenuItem[])

Adds a new MenuItem to the end of this menu with the specified caption, Click event handler, and items.

Return to top
Show:
© 2016 Microsoft