Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ToolStripMenuItem Members

Represents a selectable option displayed on a MenuStrip or ContextMenuStrip. Although ToolStripMenuItem replaces and adds functionality to the MenuItem control of previous versions, MenuItem is retained for both backward compatibility and future use if you choose.

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

  Name Description
Public method ToolStripMenuItem Overloaded. Initializes a new instance of the ToolStripMenuItem class.
Top

(see also Protected Properties )
  Name Description
Public property AccessibilityObject  Gets the AccessibleObject assigned to the control.(inherited from ToolStripItem)
Public property AccessibleDefaultActionDescription  Gets or sets the default action description of the control for use by accessibility client applications.(inherited from ToolStripItem)
Public property AccessibleDescription  Gets or sets the description that will be reported to accessibility client applications.(inherited from ToolStripItem)
Public property AccessibleName  Gets or sets the name of the control for use by accessibility client applications.(inherited from ToolStripItem)
Public property AccessibleRole  Gets or sets the accessible role of the control, which specifies the type of user interface element of the control.(inherited from ToolStripItem)
Public property Alignment  Gets or sets a value indicating whether the item aligns towards the beginning or end of the ToolStrip.(inherited from ToolStripItem)
Public property AllowDrop  Gets or sets a value indicating whether drag-and-drop and item reordering are handled through events that you implement.(inherited from ToolStripItem)
Public property Anchor  Gets or sets the edges of the container to which a ToolStripItem is bound and determines how a ToolStripItem is resized with its parent.(inherited from ToolStripItem)
Public property AutoSize  Gets or sets a value indicating whether the item is automatically sized.(inherited from ToolStripItem)
Public property AutoToolTip  Gets or sets a value indicating whether to use the Text property or the ToolTipText property for the ToolStripItem ToolTip. (inherited from ToolStripItem)
Public property Available  Gets or sets a value indicating whether the ToolStripItem should be placed on a ToolStrip.(inherited from ToolStripItem)
Public property BackColor  Gets or sets the background color for the item.(inherited from ToolStripItem)
Public property BackgroundImage  (inherited from ToolStripItem)
Public property BackgroundImageLayout  Gets or sets the background image layout used for the ToolStripItem.(inherited from ToolStripItem)
Public property Bounds  Gets the size and location of the item.(inherited from ToolStripItem)
Public property CanSelect  Gets a value indicating whether the item can be selected.(inherited from ToolStripItem)
Public property Checked Gets or sets a value indicating whether the ToolStripMenuItem is checked.
Public property CheckOnClick Gets or sets a value indicating whether the ToolStripMenuItem should automatically appear checked and unchecked when clicked.
Public property CheckState Gets or sets a value indicating whether a ToolStripMenuItem is in the checked, unchecked, or indeterminate state.
Public property Container  Gets the IContainer that contains the Component.(inherited from Component)
Public property ContentRectangle  Gets the area where content, such as text and icons, can be placed within a ToolStripItem without overwriting background borders.(inherited from ToolStripItem)
Public property DisplayStyle  Gets or sets whether text and images are displayed on a ToolStripItem.(inherited from ToolStripItem)
Public property Dock  Gets or sets which ToolStripItem borders are docked to its parent control and determines how a ToolStripItem is resized with its parent.(inherited from ToolStripItem)
Public property DoubleClickEnabled  Gets or sets a value indicating whether the ToolStripItem can be activated by double-clicking the mouse. (inherited from ToolStripItem)
Public property DropDown  Gets or sets the ToolStripDropDown that will be displayed when this ToolStripDropDownItem is clicked.(inherited from ToolStripDropDownItem)
Public property DropDownDirection  Gets or sets a value indicating the direction in which the ToolStripDropDownItem emerges from its parent container.(inherited from ToolStripDropDownItem)
Public property DropDownItems  Gets the collection of items in the ToolStripDropDown that is associated with this ToolStripDropDownItem.(inherited from ToolStripDropDownItem)
Public property Enabled Overridden. Gets or sets a value indicating whether the control is enabled.
Public property Font  Gets or sets the font of the text displayed by the item.(inherited from ToolStripItem)
Public property ForeColor  Gets or sets the foreground color of the item.(inherited from ToolStripItem)
Public property HasDropDownItems  Gets a value indicating whether the ToolStripDropDownItem has ToolStripDropDown controls associated with it. (inherited from ToolStripDropDownItem)
Public property Height  Gets or sets the height, in pixels, of a ToolStripItem.(inherited from ToolStripItem)
Public property Image  Gets or sets the image that is displayed on a ToolStripItem.(inherited from ToolStripItem)
Public property ImageAlign  Gets or sets the alignment of the image on a ToolStripItem.(inherited from ToolStripItem)
Public property ImageIndex  Gets or sets the index value of the image that is displayed on the item.(inherited from ToolStripItem)
Public property ImageKey  Gets or sets the key accessor for the image in the ImageList that is displayed on a ToolStripItem.(inherited from ToolStripItem)
Public property ImageScaling  Gets or sets a value indicating whether an image on a ToolStripItem is automatically resized to fit in a container.(inherited from ToolStripItem)
Public property ImageTransparentColor  Gets or sets the color to treat as transparent in a ToolStripItem image.(inherited from ToolStripItem)
Public property IsDisposed  Gets a value indicating whether the object has been disposed of.(inherited from ToolStripItem)
Public property IsMdiWindowListEntry Gets a value indicating whether the ToolStripMenuItem appears on a multiple document interface (MDI) window list.
Public property IsOnDropDown  Gets a value indicating whether the container of the current Control is a ToolStripDropDown. (inherited from ToolStripItem)
Public property IsOnOverflow  Gets a value indicating whether the Placement property is set to Overflow.(inherited from ToolStripItem)
Public property Margin  Gets or sets the space between the item and adjacent items.(inherited from ToolStripItem)
Public property MergeAction  Gets or sets how child menus are merged with parent menus. (inherited from ToolStripItem)
Public property MergeIndex  Gets or sets the position of a merged item within the current ToolStrip.(inherited from ToolStripItem)
Public property Name  Gets or sets the name of the item.(inherited from ToolStripItem)
Public property Overflow Gets or sets a value indicating whether the ToolStripMenuItem is attached to the ToolStrip or the ToolStripOverflowButton or whether it can float between the two.
Public property Owner  Gets or sets the owner of this item.(inherited from ToolStripItem)
Public property OwnerItem  Gets the parent ToolStripItem of this ToolStripItem.(inherited from ToolStripItem)
Public property Padding  Gets or sets the internal spacing, in pixels, between the item's contents and its edges.(inherited from ToolStripItem)
Public property Placement  Gets the current layout of the item.(inherited from ToolStripItem)
Public property Pressed  Gets a value indicating whether the ToolStripDropDownItem is in the pressed state.(inherited from ToolStripDropDownItem)
Public property RightToLeft  Gets or sets a value indicating whether items are to be placed from right to left and text is to be written from right to left.(inherited from ToolStripItem)
Public property RightToLeftAutoMirrorImage  Mirrors automatically the ToolStripItem image when the RightToLeft property is set to Yes.(inherited from ToolStripItem)
Public property Selected  Gets a value indicating whether the item is selected.(inherited from ToolStripItem)
Public property ShortcutKeyDisplayString Gets or sets the shortcut key text.
Public property ShortcutKeys Gets or sets the shortcut keys associated with the ToolStripMenuItem.
Public property ShowShortcutKeys Gets or sets a value indicating whether the shortcut keys that are associated with the ToolStripMenuItem are displayed next to the ToolStripMenuItem.
Public property Site  Gets or sets the ISite of the Component.(inherited from Component)
Public property Size  Gets or sets the size of the item.(inherited from ToolStripItem)
Public property Tag  Gets or sets the object that contains data about the item.(inherited from ToolStripItem)
Public property Text  Gets or sets the text that is to be displayed on the item.(inherited from ToolStripItem)
Public property TextAlign  Gets or sets the alignment of the text on a ToolStripLabel.(inherited from ToolStripItem)
Public property TextDirection  Gets the orientation of text used on a ToolStripItem.(inherited from ToolStripItem)
Public property TextImageRelation  Gets or sets the position of ToolStripItem text and image relative to each other.(inherited from ToolStripItem)
Public property ToolTipText  Gets or sets the text that appears as a ToolTip for a control.(inherited from ToolStripItem)
Public property Visible  Gets or sets a value indicating whether the item is displayed.(inherited from ToolStripItem)
Public property Width  Gets or sets the width in pixels of a ToolStripItem.(inherited from ToolStripItem)
Top

  Name Description
Protected property CanRaiseEvents  Gets a value indicating whether the component can raise an event.(inherited from Component)
Protected property DefaultAutoToolTip  Gets a value indicating whether to display the ToolTip that is defined as the default.(inherited from ToolStripItem)
Protected property DefaultDisplayStyle  Gets a value indicating what is displayed on the ToolStripItem.(inherited from ToolStripItem)
Protected property DefaultMargin Overridden. Gets the spacing between the ToolStripMenuItem and an adjacent item.
Protected property DefaultPadding Overridden. Gets the internal spacing within the ToolStripMenuItem.
Protected property DefaultSize Overridden. Gets the default size of the ToolStripMenuItem.
Protected property DesignMode  Gets a value that indicates whether the Component is currently in design mode.(inherited from Component)
Protected property DismissWhenClicked  Gets a value indicating whether items on a ToolStripDropDown are hidden after they are clicked.(inherited from ToolStripItem)
Protected property DropDownLocation  Gets the screen coordinates, in pixels, of the upper-left corner of the ToolStripDropDownItem.(inherited from ToolStripDropDownItem)
Protected property Events  Gets the list of event handlers that are attached to this Component.(inherited from Component)
Protected property Parent  Gets or sets the parent container of the ToolStripItem.(inherited from ToolStripItem)
Protected property ShowKeyboardCues  Gets a value indicating whether to show or hide shortcut keys.(inherited from ToolStripItem)
Top

(see also Protected Methods )
  Name Description
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 Dispose Overloaded. Releases the resources used by the ToolStripMenuItem.
Public method DoDragDrop  Begins a drag-and-drop operation. (inherited from ToolStripItem)
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetCurrentParent  Retrieves the ToolStrip that is the container of the current ToolStripItem. (inherited from ToolStripItem)
Public method 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 GetPreferredSize  Retrieves the size of a rectangular area into which a control can be fit. (inherited from ToolStripItem)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method HideDropDown  Makes a visible ToolStripDropDown hidden. (inherited from ToolStripDropDownItem)
Public method InitializeLifetimeService  Obtains a lifetime service object to control the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public method Invalidate  Overloaded. Invalidates some or all of the surface of the ToolStripItem and causes it to be redrawn. (inherited from ToolStripItem)
Public method PerformClick  Activates the ToolStripItem when it is clicked with the mouse. (inherited from ToolStripItem)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ResetBackColor  This method is not relevant to this class. (inherited from ToolStripItem)
Public method ResetDisplayStyle  This method is not relevant to this class. (inherited from ToolStripItem)
Public method ResetFont  This method is not relevant to this class. (inherited from ToolStripItem)
Public method ResetForeColor  This method is not relevant to this class. (inherited from ToolStripItem)
Public method ResetImage  This method is not relevant to this class. (inherited from ToolStripItem)
Public method ResetMargin  This method is not relevant to this class. (inherited from ToolStripItem)
Public method ResetPadding  This method is not relevant to this class. (inherited from ToolStripItem)
Public method ResetRightToLeft  This method is not relevant to this class. (inherited from ToolStripItem)
Public method ResetTextDirection  This method is not relevant to this class. (inherited from ToolStripItem)
Public method Select  Selects the item. (inherited from ToolStripItem)
Public method ShowDropDown  Displays the ToolStripDropDownItem control associated with this ToolStripDropDownItem. (inherited from ToolStripDropDownItem)
Public method ToString  (inherited from ToolStripItem)
Top

  Name Description
Protected method CreateAccessibilityInstance Overridden. Creates a new accessibility object for the ToolStripMenuItem.
Protected method CreateDefaultDropDown Overridden. Creates a generic ToolStripDropDown for which events can be defined.
Protected method Dispose Overloaded. Overridden. Releases the resources used by the ToolStripMenuItem.
Protected method Finalize  Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (inherited from Component)
Protected method GetService  Returns an object that represents a service provided by the Component or by its Container. (inherited from Component)
Protected method IsInputChar  Determines whether a character is an input character that the item recognizes. (inherited from ToolStripItem)
Protected method IsInputKey  Determines whether the specified key is a regular input key or a special key that requires preprocessing. (inherited from ToolStripItem)
Protected method MemberwiseClone  Overloaded. (inherited from MarshalByRefObject)
Protected method OnAvailableChanged  Raises the AvailableChanged event. (inherited from ToolStripItem)
Protected method OnBackColorChanged  Raises the BackColorChanged event. (inherited from ToolStripItem)
Protected method OnBoundsChanged  (inherited from ToolStripDropDownItem)
Protected method OnCheckedChanged Raises the CheckedChanged event.
Protected method OnCheckStateChanged Raises the CheckStateChanged event.
Protected method OnClick Overridden. Raises the Click event.
Protected method OnDisplayStyleChanged  Raises the DisplayStyleChanged event. (inherited from ToolStripItem)
Protected method OnDoubleClick  Raises the DoubleClick event. (inherited from ToolStripItem)
Protected method OnDragDrop  Raises the DragDrop event. (inherited from ToolStripItem)
Protected method OnDragEnter  Raises the DragEnter event. (inherited from ToolStripItem)
Protected method OnDragLeave  Raises the DragLeave event. (inherited from ToolStripItem)
Protected method OnDragOver  Raises the DragOver event. (inherited from ToolStripItem)
Protected method OnDropDownClosed  Raises the DropDownClosed event. (inherited from ToolStripDropDownItem)
Protected method OnDropDownHide Overridden. Raised in response to the HideDropDown method.
Protected method OnDropDownItemClicked  Raises the DropDownItemClicked event. (inherited from ToolStripDropDownItem)
Protected method OnDropDownOpened  Raises the DropDownOpened event. (inherited from ToolStripDropDownItem)
Protected method OnDropDownShow Overridden. Raised in response to the ShowDropDown method.
Protected method OnEnabledChanged  Raises the EnabledChanged event. (inherited from ToolStripItem)
Protected method OnFontChanged Overridden.  
Protected method OnForeColorChanged  Raises the ForeColorChanged event. (inherited from ToolStripItem)
Protected method OnGiveFeedback  Raises the GiveFeedback event. (inherited from ToolStripItem)
Protected method OnLayout  Raises the Layout event. (inherited from ToolStripItem)
Protected method OnLocationChanged  Raises the LocationChanged event. (inherited from ToolStripItem)
Protected method OnMouseDown Overridden. Raises the MouseDown event.
Protected method OnMouseEnter Overridden. Raises the MouseEnter event.
Protected method OnMouseHover  Raises the MouseHover event. (inherited from ToolStripItem)
Protected method OnMouseLeave Overridden. Raises the MouseLeave event.
Protected method OnMouseMove  Raises the MouseMove event. (inherited from ToolStripItem)
Protected method OnMouseUp Overridden. Raises the MouseUp event.
Protected method OnOwnerChanged Overridden. Raises the OwnerChanged event.
Protected method OnOwnerFontChanged  Raises the FontChanged event when the Font property has changed on the parent of the ToolStripItem. (inherited from ToolStripItem)
Protected method OnPaint Overridden. Raises the Paint event.
Protected method OnParentBackColorChanged  Raises the BackColorChanged event. (inherited from ToolStripItem)
Protected method OnParentChanged  Raises the ParentChanged event. (inherited from ToolStripItem)
Protected method OnParentEnabledChanged  Raises the EnabledChanged event when the Enabled property value of the item's container changes. (inherited from ToolStripItem)
Protected method OnParentForeColorChanged  Raises the ForeColorChanged event. (inherited from ToolStripItem)
Protected method OnParentRightToLeftChanged  Raises the RightToLeftChanged event. (inherited from ToolStripItem)
Protected method OnQueryContinueDrag  Raises the QueryContinueDrag event. (inherited from ToolStripItem)
Protected method OnRightToLeftChanged  (inherited from ToolStripDropDownItem)
Protected method OnTextChanged  Raises the TextChanged event. (inherited from ToolStripItem)
Protected method OnVisibleChanged  Raises the VisibleChanged event. (inherited from ToolStripItem)
Protected method ProcessCmdKey Overridden. Processes a command key.
Protected method ProcessDialogKey  (inherited from ToolStripDropDownItem)
Protected method ProcessMnemonic Overridden. Processes a mnemonic character.
Protected method SetBounds Overridden. Sets the size and location of the ToolStripMenuItem.
Protected method SetVisibleCore  Sets the ToolStripItem to the specified visible state. (inherited from ToolStripItem)
Top

  Name Description
Public event AvailableChanged  Occurs when the value of the Available property changes.(inherited from ToolStripItem)
Public event BackColorChanged  Occurs when the value of the BackColor property changes.(inherited from ToolStripItem)
Public event CheckedChanged Occurs when the value of the Checked property changes.
Public event CheckStateChanged Occurs when the value of the CheckState property changes.
Public event Click  Occurs when the ToolStripItem is clicked.(inherited from ToolStripItem)
Public event DisplayStyleChanged  Occurs when the DisplayStyle has changed.(inherited from ToolStripItem)
Public event Disposed  Occurs when the component is disposed by a call to the Dispose method. (inherited from Component)
Public event DoubleClick  Occurs when the item is double-clicked with the mouse.(inherited from ToolStripItem)
Public event DragDrop  Occurs when the user drags an item and the user releases the mouse button, indicating that the item should be dropped into this item.(inherited from ToolStripItem)
Public event DragEnter  Occurs when the user drags an item into the client area of this item.(inherited from ToolStripItem)
Public event DragLeave  Occurs when the user drags an item and the mouse pointer is no longer over the client area of this item.(inherited from ToolStripItem)
Public event DragOver  Occurs when the user drags an item over the client area of this item.(inherited from ToolStripItem)
Public event DropDownClosed  Occurs when the ToolStripDropDown closes. (inherited from ToolStripDropDownItem)
Public event DropDownItemClicked  Occurs when the ToolStripDropDown is clicked.(inherited from ToolStripDropDownItem)
Public event DropDownOpened  Occurs when the ToolStripDropDown has opened.(inherited from ToolStripDropDownItem)
Public event DropDownOpening  Occurs as the ToolStripDropDown is opening.(inherited from ToolStripDropDownItem)
Public event EnabledChanged  Occurs when the Enabled property value has changed.(inherited from ToolStripItem)
Public event ForeColorChanged  Occurs when the ForeColor property value changes.(inherited from ToolStripItem)
Public event GiveFeedback  Occurs during a drag operation.(inherited from ToolStripItem)
Public event LocationChanged  Occurs when the location of a ToolStripItem is updated.(inherited from ToolStripItem)
Public event MouseDown  Occurs when the mouse pointer is over the item and a mouse button is pressed.(inherited from ToolStripItem)
Public event MouseEnter  Occurs when the mouse pointer enters the item.(inherited from ToolStripItem)
Public event MouseHover  Occurs when the mouse pointer hovers over the item.(inherited from ToolStripItem)
Public event MouseLeave  Occurs when the mouse pointer leaves the item.(inherited from ToolStripItem)
Public event MouseMove  Occurs when the mouse pointer is moved over the item.(inherited from ToolStripItem)
Public event MouseUp  Occurs when the mouse pointer is over the item and a mouse button is released.(inherited from ToolStripItem)
Public event OwnerChanged  Occurs when the Owner property changes. (inherited from ToolStripItem)
Public event Paint  Occurs when the item is redrawn.(inherited from ToolStripItem)
Public event QueryAccessibilityHelp  Occurs when an accessibility client application invokes help for the ToolStripItem.(inherited from ToolStripItem)
Public event QueryContinueDrag  Occurs during a drag-and-drop operation and allows the drag source to determine whether the drag-and-drop operation should be canceled.(inherited from ToolStripItem)
Public event RightToLeftChanged  Occurs when the RightToLeft property value changes.(inherited from ToolStripItem)
Public event TextChanged  Occurs when the value of the Text property changes.(inherited from ToolStripItem)
Public event VisibleChanged  Occurs when the value of the Visible property changes.(inherited from ToolStripItem)
Top

Community Additions

ADD
Show:
© 2015 Microsoft