MenuItem Constructor
.NET Framework 4.5
Initializes a new instance of the MenuItem class.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
MenuItem() | Initializes a MenuItem with a blank caption. |
|
MenuItem(String) | Initializes a new instance of the MenuItem class with a specified caption for the menu item. |
|
MenuItem(String, EventHandler) | Initializes a new instance of the class with a specified caption and event handler for the Click event of the menu item. |
|
MenuItem(String, MenuItem[]) | Initializes a new instance of the class with a specified caption and an array of submenu items defined for the menu item. |
|
MenuItem(String, EventHandler, Shortcut) | Initializes a new instance of the class with a specified caption, event handler, and associated shortcut key for the menu item. |
|
MenuItem(MenuMerge, Int32, Shortcut, String, EventHandler, EventHandler, EventHandler, MenuItem[]) | Initializes a new instance of the MenuItem class with a specified caption; defined event-handlers for the Click, Select and Popup events; a shortcut key; a merge type; and order specified for the menu item. |