MenuItem Constructor

MenuItem Constructor

 

Initializes a new instance of the MenuItem class.

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

NameDescription
System_CAPS_pubmethodMenuItem()

Initializes a MenuItem with a blank caption.

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

System_CAPS_pubmethodMenuItem(String)

Initializes a new instance of the MenuItem class with a specified caption for the menu item.

System_CAPS_pubmethodMenuItem(String, EventHandler)

Initializes a new instance of the class with a specified caption and event handler for the Click event of the menu item.

System_CAPS_pubmethodMenuItem(String, EventHandler, Shortcut)

Initializes a new instance of the class with a specified caption, event handler, and associated shortcut key for the menu item.

System_CAPS_pubmethodMenuItem(String, MenuItem[])

Initializes a new instance of the class with a specified caption and an array of submenu items defined for the menu item.

Return to top
Show:
© 2016 Microsoft