System.Windows.Forms.MenuItem: Method Members

The methods of System.Windows.Forms.MenuItem are listed below. For a list of all members, see the MenuItem Members list.

See Also: Inherited members from System.Windows.Forms.Menu

Public Methods

CloneMenu() : MenuItem

Creates a copy of the current System.Windows.Forms.MenuItem.

MergeMenu() : MenuItem

Merges this System.Windows.Forms.MenuItem with another System.Windows.Forms.MenuItem and returns the resulting merged System.Windows.Forms.MenuItem.

MergeMenu(MenuItem)

Merges another menu item with this menu item.

PerformClick()

Generates a Control.Click event for the System.Windows.Forms.MenuItem, simulating a click by a user.

PerformSelect()

Raises the MenuItem.Select event for this menu item.

override
ToString() : string

Returns a string that represents the System.Windows.Forms.MenuItem.

Protected Methods

CloneMenu(MenuItem)

Creates a copy of the specified System.Windows.Forms.MenuItem.

override
Dispose(bool)

Disposes of the resources (other than memory) used by the System.Windows.Forms.MenuItem.

OnClick(EventArgs)

Raises the MenuItem.Click event.

OnDrawItem(DrawItemEventArgs)

Raises the MenuItem.DrawItem event.

OnInitMenuPopup(EventArgs)

Raises the MenuItem.Popup event.

OnMeasureItem(MeasureItemEventArgs)

Raises the MenuItem.MeasureItem event.

OnPopup(EventArgs)

Raises the MenuItem.Popup event.

OnSelect(EventArgs)

Raises the MenuItem.Select event.