Export (0) Print
Expand All

Menu Members

Represents the base functionality for all menus. Although ToolStripDropDown and ToolStripDropDownMenu replace and add functionality to the Menu control of previous versions, Menu is retained for both backward compatibility and future use if you choose.

The Menu type exposes the following members.

  NameDescription
Protected method Menu Initializes a new instance of the Menu class.
Top

  NameDescription
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 Supported by the .NET Compact Framework Dispose Overloaded.
Public method Supported by the .NET Compact Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework 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 Supported by the .NET Compact Framework GetHashCode Serves as a hash function for a particular type. (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 Supported by the .NET Compact Framework 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 Supported by the .NET Compact Framework MemberwiseClone Overloaded.
Public method MergeMenu Merges the MenuItem objects of one menu with the current menu.
Protected method ProcessCmdKey Processes a command key.
Public method Supported by the .NET Compact Framework ToString Returns a String that represents the Menu control. (Overrides Component.ToString().)

In .NET Compact Framework 3.5, this member is inherited from Object.ToString().
Top

  NameDescription
Public field Static member FindHandle Specifies that the FindMenuItem method should search for a handle.
Public field Static member FindShortcut Specifies that the FindMenuItem method should search for a shortcut.
Top

  NameDescription
Protected property CanRaiseEvents Gets a value indicating whether the component can raise an event. (Inherited from Component.)
Public property Container Gets the IContainer that contains the Component. (Inherited from Component.)
Protected property DesignMode Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Protected property Supported by the .NET Compact Framework Events Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public property Handle Gets a value representing the window handle for the menu.
Public property IsParent Gets a value indicating whether this menu contains any menu items. This property is read-only.
Public property MdiListItem Gets a value indicating the MenuItem that is used to display a list of multiple document interface (MDI) child forms.
Public property Supported by the .NET Compact Framework MenuItems Gets a value indicating the collection of MenuItem objects associated with the menu.
Public property Name Gets or sets the name of the Menu.
Public property Supported by the .NET Compact Framework Site Gets or sets the ISite of the Component. (Inherited from Component.)
Public property Tag Gets or sets user-defined data associated with the control.
Top

  NameDescription
Public event Supported by the .NET Compact Framework Disposed Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Top

Community Additions

ADD
Show:
© 2015 Microsoft