System.Windows.Forms.MenuStrip Members

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

See Also: Inherited members from System.Windows.Forms.ToolStrip

Public Constructors

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

Public Properties

CanOverflowbool.

Gets or sets a value indicating whether the System.Windows.Forms.MenuStrip supports overflow functionality.

GripStyleToolStripGripStyle.

Gets or sets the visibility of the grip used to reposition the control.

MdiWindowListItemToolStripMenuItem.

Gets or sets the System.Windows.Forms.ToolStripMenuItem that is used to display a list of Multiple-document interface (MDI) child forms.

ShowItemToolTipsbool.

Gets or sets a value indicating whether ToolTips are shown for the System.Windows.Forms.MenuStrip.

Stretchbool.

Gets or sets a value indicating whether the System.Windows.Forms.MenuStrip stretches from end to end in its container.

Protected Properties

[read-only]
override
DefaultGripMarginPadding.

Gets the default spacing, in pixels, between the sizing grip and the edges of the System.Windows.Forms.MenuStrip.

[read-only]
override
DefaultPaddingPadding.

Gets the spacing, in pixels, between the left, right, top, and bottom edges of the System.Windows.Forms.MenuStrip from the edges of the form.

[read-only]
override
DefaultShowItemToolTipsbool.

Gets a value indicating whether ToolTips are shown for the System.Windows.Forms.MenuStrip by default.

[read-only]
override
DefaultSizeSystem.Drawing.Size.

Gets the horizontal and vertical dimensions, in pixels, of the System.Windows.Forms.MenuStrip when it is first created.

Protected Methods

override
CreateAccessibilityInstance() : AccessibleObject

Creates a new accessibility object for the control.

override
CreateDefaultItem(string, System.Drawing.Image, EventHandler) : ToolStripItem

Creates a System.Windows.Forms.ToolStripMenuItem with the specified text, image, and event handler on a new System.Windows.Forms.MenuStrip.

OnMenuActivate(EventArgs)

Raises the MenuStrip.MenuActivate event.

OnMenuDeactivate(EventArgs)

Raises the MenuStrip.MenuDeactivate event.

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

Public Events

MenuActivate

Occurs when the user accesses the menu with the keyboard or mouse.

MenuDeactivate

Occurs when the System.Windows.Forms.MenuStrip is deactivated.