Export (0) Print
Expand All

MainMenu Members

Represents the menu structure of a form. Although MenuStrip replaces and adds functionality to the MainMenu control of previous versions, MainMenu is retained for both backward compatibility and future use if you choose.

The following tables list the members exposed by the MainMenu type.

  Name Description
Public method Supported by the .NET Compact Framework MainMenu Overloaded. Initializes a new instance of the MainMenu class.
Top

(see also Protected Properties )
  Name Description
Public property Container  Gets the IContainer that contains the Component.(inherited from Component)
Public property Handle  Gets a value representing the window handle for the menu.(inherited from Menu)
Public property IsParent  Gets a value indicating whether this menu contains any menu items. This property is read-only.(inherited from Menu)
Public property MdiListItem  Gets a value indicating the MenuItem that is used to display a list of multiple document interface (MDI) child forms.(inherited from Menu)
Public property Supported by the .NET Compact Framework MenuItems  Gets a value indicating the collection of MenuItem objects associated with the menu.(inherited from Menu)
Public property Name  Gets or sets the name of the Menu.(inherited from Menu)
Public property RightToLeft Gets or sets whether the text displayed by the control is displayed from right to left.
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.(inherited from Menu)
Top

  Name Description
Protected property CanRaiseEvents  Gets a value indicating whether the component can raise an event.(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)
Top

(see also Protected Methods )
  Name Description
Public method CloneMenu Overloaded. Creates a new MainMenu that is a duplicate of the current MainMenu.
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. Disposes of the resources, other than memory, used by the MainMenu.
Public method Supported by the .NET Compact Framework Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method FindMenuItem  Gets the MenuItem that contains the value specified. (inherited from Menu)
Public method GetContextMenu  Gets the ContextMenu that contains this menu. (inherited from Menu)
Public method GetForm Gets the Form that contains this control.
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. (inherited from Menu)
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)
Public method MergeMenu  Merges the MenuItem objects of one menu with the current menu. (inherited from Menu)
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Supported by the .NET Compact Framework ToString Overridden. Returns a string that represents the MainMenu.
Top

  Name Description
Protected method CloneMenu  Overloaded. (inherited from Menu)
Protected method CreateMenuHandle Overridden.  
Protected method Supported by the .NET Compact Framework Dispose Overloaded. Overridden. Disposes of the resources, other than memory, used by the MainMenu.
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)
Protected method FindMergePosition  Returns the position at which a menu item should be inserted into the 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)
Protected method Supported by the .NET Compact Framework MemberwiseClone  Overloaded. (inherited from MarshalByRefObject)
Protected method OnCollapse Raises the Collapse event.
Protected method ProcessCmdKey  Processes a command key. (inherited from Menu)
Top

  Name Description
Public event Collapse Occurs when the main menu collapses.
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:
© 2014 Microsoft