MenuItem Methods
.NET Framework 4.5
The MenuItem type exposes the following members.
| Name | Description | |
|---|---|---|
|
CloneMenu() | Creates a copy of the current MenuItem. |
|
CloneMenu(Menu) | Copies the Menu that is passed as a parameter to the current Menu. (Inherited from Menu.) |
|
CloneMenu(MenuItem) | Creates a copy of the specified MenuItem. |
|
CreateMenuHandle | Creates a new handle to the Menu. (Inherited from Menu.) |
|
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
|
Dispose() | Releases all resources used by the Component. (Inherited from Component.) |
|
Dispose(Boolean) | Disposes of the resources (other than memory) used by the MenuItem. (Overrides Menu.Dispose(Boolean).) |
|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.) |
|
FindMenuItem | Gets the MenuItem that contains the value specified. (Inherited from Menu.) |
|
FindMergePosition | Returns the position at which a menu item should be inserted into the menu. (Inherited from Menu.) |
|
GetContextMenu | Gets the ContextMenu that contains this menu. (Inherited from Menu.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
GetMainMenu | Gets the MainMenu that contains this menu. (Inherited from Menu.) |
|
GetService | Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
|
MergeMenu() | Merges this MenuItem with another MenuItem and returns the resulting merged MenuItem. |
|
MergeMenu(Menu) | Merges the MenuItem objects of one menu with the current menu. (Inherited from Menu.) |
|
MergeMenu(MenuItem) | Merges another menu item with this menu item. |
|
OnClick | Raises the Click event. |
|
OnDrawItem | Raises the DrawItem event. |
|
OnInitMenuPopup | Infrastructure. Raises the Popup event. |
|
OnMeasureItem | Raises the MeasureItem event. |
|
OnPopup | Raises the Popup event. |
|
OnSelect | Raises the Select event. |
|
PerformClick | Generates a Click event for the MenuItem, simulating a click by a user. |
|
PerformSelect | Raises the Select event for this menu item. |
|
ProcessCmdKey | Processes a command key. (Inherited from Menu.) |
|
ToString | Infrastructure. Returns a string that represents the MenuItem. (Overrides Menu.ToString().) |