System.Windows.Forms.ToolStripMenuItem Members

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

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

Public Constructors

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

Initializes a new instance of the System.Windows.Forms.ToolStripMenuItem class that displays the specified System.Drawing.Image.

Initializes a new instance of the System.Windows.Forms.ToolStripMenuItem class that displays the specified text.

Initializes a new instance of the System.Windows.Forms.ToolStripMenuItem class that displays the specified text and image.

Initializes a new instance of the System.Windows.Forms.ToolStripMenuItem class that displays the specified text and image and that does the specified action when the System.Windows.Forms.ToolStripMenuItem is clicked.

Initializes a new instance of the System.Windows.Forms.ToolStripMenuItem class that displays the specified text and image and that contains the specified System.Windows.Forms.ToolStripItem collection.

Initializes a new instance of the System.Windows.Forms.ToolStripMenuItem class with the specified name that displays the specified text and image that does the specified action when the System.Windows.Forms.ToolStripMenuItem is clicked.

Initializes a new instance of the System.Windows.Forms.ToolStripMenuItem class that displays the specified text and image, does the specified action when the System.Windows.Forms.ToolStripMenuItem is clicked, and displays the specified shortcut keys.

Public Properties

Checkedbool.

Gets or sets a value indicating whether the System.Windows.Forms.ToolStripMenuItem is checked.

CheckOnClickbool.

Gets or sets a value indicating whether the System.Windows.Forms.ToolStripMenuItem should automatically appear checked and unchecked when clicked.

CheckStateCheckState.

Gets or sets a value indicating whether a System.Windows.Forms.ToolStripMenuItem is in the checked, unchecked, or indeterminate state.

override
Enabledbool.

Gets or sets a value indicating whether the control is enabled.

[read-only]
IsMdiWindowListEntrybool.

Gets a value indicating whether the System.Windows.Forms.ToolStripMenuItem appears on a multiple document interface (MDI) window list.

OverflowToolStripItemOverflow.

Gets or sets a value indicating whether the System.Windows.Forms.ToolStripMenuItem is attached to the System.Windows.Forms.ToolStrip or the System.Windows.Forms.ToolStripOverflowButton or whether it can float between the two.

ShortcutKeyDisplayStringstring.

Gets or sets the shortcut key text.

ShortcutKeysKeys.

Gets or sets the shortcut keys associated with the System.Windows.Forms.ToolStripMenuItem.

ShowShortcutKeysbool.

Gets or sets a value indicating whether the shortcut keys that are associated with the System.Windows.Forms.ToolStripMenuItem are displayed next to the System.Windows.Forms.ToolStripMenuItem.

Protected Properties

[read-only]
override
DefaultMarginPadding.

Gets the spacing between the System.Windows.Forms.ToolStripMenuItem and an adjacent item.

[read-only]
override
DefaultPaddingPadding.

Gets the internal spacing within the System.Windows.Forms.ToolStripMenuItem.

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

Gets the default size of the System.Windows.Forms.ToolStripMenuItem.

Protected Methods

override
CreateAccessibilityInstance() : AccessibleObject

Creates a new accessibility object for the System.Windows.Forms.ToolStripMenuItem.

override
CreateDefaultDropDown() : ToolStripDropDown

Creates a generic System.Windows.Forms.ToolStripDropDown for which events can be defined.

override
Dispose(bool)

Releases the unmanaged resources used by the System.Windows.Forms.ToolStripMenuItem and optionally releases the managed resources.

OnCheckedChanged(EventArgs)

Raises the ToolStripMenuItem.CheckedChanged event.

OnCheckStateChanged(EventArgs)

Raises the ToolStripMenuItem.CheckStateChanged event.

override
OnClick(EventArgs)

Raises the ToolStripItem.Click event.

override
OnDropDownHide(EventArgs)

Raised in response to the ToolStripDropDownItem.HideDropDown method.

override
OnDropDownShow(EventArgs)

Raised in response to the ToolStripDropDownItem.ShowDropDown method.

override
OnFontChanged(EventArgs)

Raises the Control.FontChanged event.

override
OnMouseDown(MouseEventArgs)

Raises the Control.MouseDown event.

override
OnMouseEnter(EventArgs)

Raises the Control.MouseEnter event.

override
OnMouseLeave(EventArgs)

Raises the Control.MouseLeave event.

override
OnMouseUp(MouseEventArgs)

Raises the ToolStripItem.MouseUp event.

override
OnOwnerChanged(EventArgs)

Raises the ToolStripItem.OwnerChanged event.

override
OnPaint(PaintEventArgs)

Raises the Control.Paint event.

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

Processes a mnemonic character.

override
SetBounds(System.Drawing.Rectangle)

Sets the size and location of the System.Windows.Forms.ToolStripMenuItem.

Public Events

CheckedChanged

Occurs when the value of the ToolStripMenuItem.Checked property changes.

CheckStateChanged

Occurs when the value of the ToolStripMenuItem.CheckState property changes.