Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

MenuItem Methods

The MenuItem type exposes the following members.

  Name Description
Public method CloneMenu() Creates a copy of the current MenuItem.
Protected method CloneMenu(Menu) Copies the Menu that is passed as a parameter to the current Menu. (Inherited from Menu.)
Protected method CloneMenu(MenuItem) Creates a copy of the specified MenuItem.
Protected method CreateMenuHandle Creates a new handle to the Menu. (Inherited from Menu.)
Public method 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.)
Public method Dispose() Releases all resources used by the Component. (Inherited from Component.)
Protected method Dispose(Boolean) Disposes of the resources (other than memory) used by the MenuItem. (Overrides Menu.Dispose(Boolean).)
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public method FindMenuItem Gets the MenuItem that contains the value specified. (Inherited from Menu.)
Protected method FindMergePosition Returns the position at which a menu item should be inserted into the menu. (Inherited from Menu.)
Public method GetContextMenu Gets the ContextMenu that contains this menu. (Inherited from Menu.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetMainMenu Gets the MainMenu that contains this menu. (Inherited from Menu.)
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public method MergeMenu() Merges this MenuItem with another MenuItem and returns the resulting merged MenuItem.
Public method MergeMenu(Menu) Merges the MenuItem objects of one menu with the current menu. (Inherited from Menu.)
Public method MergeMenu(MenuItem) Merges another menu item with this menu item.
Protected method OnClick Raises the Click event.
Protected method OnDrawItem Raises the DrawItem event.
Protected method OnInitMenuPopup Infrastructure. Raises the Popup event.
Protected method OnMeasureItem Raises the MeasureItem event.
Protected method OnPopup Raises the Popup event.
Protected method OnSelect Raises the Select event.
Public method PerformClick Generates a Click event for the MenuItem, simulating a click by a user.
Public method PerformSelect Raises the Select event for this menu item.
Protected method ProcessCmdKey Processes a command key. (Inherited from Menu.)
Public method ToString Infrastructure. Returns a string that represents the MenuItem. (Overrides Menu.ToString().)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.