Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Menu Methods

Menu Methods

The Menu type exposes the following members.

  Name Description
Protected method CloneMenu Copies the Menu that is passed as a parameter to the current Menu.
Protected method CreateMenuHandle Creates a new handle to the 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 Menu. (Overrides Component.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.
Protected method FindMergePosition Returns the position at which a menu item should be inserted into the menu.
Public method GetContextMenu Gets the ContextMenu that contains this 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.
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 the MenuItem objects of one menu with the current menu.
Protected method ProcessCmdKey Processes a command key.
Public method ToString Returns a String that represents the Menu control. (Overrides Component.ToString().)
© 2015 Microsoft