This documentation is archived and is not being maintained.

Menu.MenuItemCollection.Add Method

Adds a new MenuItem to the collection.

Name Description
Menu.MenuItemCollection.Add (MenuItem) Adds a previously created MenuItem to the end of the current menu.

Supported by the .NET Compact Framework.

Menu.MenuItemCollection.Add (String) Adds a new MenuItem, to the end of the current menu, with a specified caption.
Menu.MenuItemCollection.Add (Int32, MenuItem) Adds a previously created MenuItem at the specified index within the menu item collection.
Menu.MenuItemCollection.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.
Menu.MenuItemCollection.Add (String, MenuItem[]) Adds a new MenuItem to the end of this menu with the specified caption, Click event handler, and items.
Show: