System.Windows.Forms.Menu Members

The members of System.Windows.Forms.Menu are listed below.

See Also: Inherited members from System.ComponentModel.Component

Protected Constructors

Initializes a new instance of the System.Windows.Forms.Menu class.

Public Fields

const
FindHandleint (0).

Specifies that the Menu.FindMenuItem(int, IntPtr) method should search for a handle.

const
FindShortcutint (1).

Specifies that the Menu.FindMenuItem(int, IntPtr) method should search for a shortcut.

Public Properties

[read-only]
HandleIntPtr.

Gets a value representing the window handle for the menu.

[read-only]
IsParentbool.

Gets a value indicating whether this menu contains any menu items. This property is read-only.

[read-only]
MdiListItemMenuItem.

Gets a value indicating the System.Windows.Forms.MenuItem that is used to display a list of multiple document interface (MDI) child forms.

[read-only]
MenuItemsMenu.MenuItemCollection.

Gets a value indicating the collection of System.Windows.Forms.MenuItem objects associated with the menu.

Namestring.

Gets or sets the name of the System.Windows.Forms.Menu.

Tagobject.

Gets or sets user-defined data associated with the control.

Public Methods

FindMenuItem(int, IntPtr) : MenuItem

Gets the System.Windows.Forms.MenuItem that contains the value specified.

GetContextMenu() : ContextMenu

Gets the System.Windows.Forms.ContextMenu that contains this menu.

GetMainMenu() : MainMenu

Gets the System.Windows.Forms.MainMenu that contains this menu.

MergeMenu(Menu)

Merges the System.Windows.Forms.MenuItem objects of one menu with the current menu.

override
ToString() : string

Returns a string that represents the System.Windows.Forms.Menu control.

Protected Methods

CloneMenu(Menu)

Copies the System.Windows.Forms.Menu that is passed as a parameter to the current System.Windows.Forms.Menu.

CreateMenuHandle() : IntPtr

Creates a new handle to the System.Windows.Forms.Menu.

override
Dispose(bool)

Disposes of the resources, other than memory, used by the System.Windows.Forms.Menu.

FindMergePosition(int) : int

Returns the position at which a menu item should be inserted into the menu.

ProcessCmdKey(ref Message, Keys) : bool
Documentation for this section has not yet been entered.