System.Windows.Forms
2.0.0.0
System.Windows.Forms.ToolStripDropDownItem
is a that works with and to handle the special highlighting, layout, and column arrangement for menus.
In order for a to be displayed, you must add it to a or .
The class provides properties that enable you to configure the appearance and functionality of a menu item. To display a check mark next to a menu item, use the property. Use this feature to identify a menu item that is selected in a list of mutually exclusive menu items. For example, if you have a set of menu items for setting the color of text in a control, use the property to identify which color is currently selected. Use the property to define a keyboard combination that can be pressed to select the menu item.
Represents a selectable option displayed on a or . Although replaces and adds functionality to the control of previous versions, is retained for both backward compatibility and future use if you choose.
Constructor
To be added.
Initializes a new instance of the class.
2.0.0.0
Constructor
Use the constructor to create a that displays an image in the margin alongside the text.
Initializes a new instance of the class that displays the specified .
The to display on the control.
2.0.0.0
Constructor
Use the constructor to create a with the specified name.
Initializes a new instance of the class that displays the specified text.
The text to display on the menu item.
2.0.0.0
Constructor
Use the constructor to create a with the specified name and image.
Initializes a new instance of the class that displays the specified text and image.
The text to display on the menu item.
The to display on the control.
2.0.0.0
Constructor
Use the to create a that displays both text and an image and that does the specified action when the is clicked.
Initializes a new instance of the class that displays the specified text and image and that does the specified action when the is clicked.
The text to display on the menu item.
The to display on the control.
An event handler that raises the event when the control is clicked.
2.0.0.0
Constructor
System.ParamArray
Use the constructor to create a that displays text and an image and that contains the specified collection.
Initializes a new instance of the class that displays the specified text and image and that contains the specified collection.
The text to display on the menu item.
The to display on the control.
The menu items to display when the control is clicked.
2.0.0.0
Constructor
To be added.
Initializes a new instance of the class with the specified name that displays the specified text and image that does the specified action when the is clicked.
The text to display on the menu item.
The to display on the control.
An event handler that raises the event when the control is clicked.
The name of the menu item.
2.0.0.0
Constructor
Use the constructor to create a that displays text and an image, performs the specified action when clicked, and has the specified shortcut key.
Initializes a new instance of the class that displays the specified text and image, does the specified action when the is clicked, and displays the specified shortcut keys.
The text to display on the menu item.
The to display on the control.
An event handler that raises the event when the control is clicked.
One of the values of that represents the shortcut key for the .
2.0.0.0
Property
System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.All)
System.ComponentModel.DefaultValue(false)
System.ComponentModel.Bindable(true)
System.Boolean
To be added.
The property returns false if and only if the is unchecked.
Gets or sets a value indicating whether the is checked.
2.0.0.0
Event
System.EventHandler
For more information about handling events, see Consuming Events.
Occurs when the value of the property changes.
2.0.0.0
Property
System.ComponentModel.DefaultValue(false)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the should automatically appear checked and unchecked when clicked.
2.0.0.0
Property
System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.All)
System.ComponentModel.DefaultValue(System.Windows.Forms.CheckState.Unchecked)
System.ComponentModel.Bindable(true)
System.Windows.Forms.CheckState
To be added.
Use the property to control or determine whether a is initially checked, unchecked, or in an indeterminate state.
Gets or sets a value indicating whether a is in the checked, unchecked, or indeterminate state.
2.0.0.0
Event
System.EventHandler
For more information about handling events, see Consuming Events.
Occurs when the value of the property changes.
2.0.0.0
Method
2.0.0.0
System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)
System.Windows.Forms.AccessibleObject
To be added.
Creates a new accessibility object for the .
A new for the .
Method
System.Windows.Forms.ToolStripDropDown
The method is automatically called if the property finds no associated with the .
Creates a generic for which events can be defined.
A generic for which can be defined.
2.0.0.0
Property
2.0.0.0
System.Windows.Forms.Padding
To be added.
To be added.
Gets the spacing between the and an adjacent item.
Property
System.Windows.Forms.Padding
To be added.
To be added.
Gets the internal spacing within the .
2.0.0.0
Property
System.Drawing.Size
To be added.
Override in derived classes to configure a default size for a . This is more efficient than setting the size in the control's constructor.
Gets the default size of the .
2.0.0.0
Method
System.Void
This method is called by the public Dispose method and the method. Dispose invokes the protected Dispose(Boolean) method with the parameter set to true. invokes Dispose with set to false.
When the parameter is true, this method releases all resources held by any managed objects that this references. This method invokes the Dispose method of each referenced object.
Releases the unmanaged resources used by the and optionally releases the managed resources.
true to release both managed and unmanaged resources; false to release only unmanaged resources.
2.0.0.0
Property
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the control is enabled.
2.0.0.0
Property
2.0.0.0
System.ComponentModel.Browsable(false)
System.Boolean
To be added.
The name of the must be specified by the property.
Gets a value indicating whether the appears on a multiple document interface (MDI) window list.
Method
System.Void
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Raises the event.
An that contains the event data.
2.0.0.0
Method
System.Void
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Raises the event.
An that contains the event data.
2.0.0.0
Method
System.Void
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Raises the event.
An that contains the event data.
2.0.0.0
Method
System.Void
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Raised in response to the method.
An that contains the event data.
2.0.0.0
Method
System.Void
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Raised in response to the method.
An that contains the event data.
2.0.0.0
Method
System.Void
To be added.
Raises the event.
An that contains the event data.
2.0.0.0
Method
System.Void
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Raises the event.
A that contains the event data.
2.0.0.0
Method
System.Void
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Raises the event.
An that contains the event data.
2.0.0.0
Method
System.Void
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Raises the event.
An that contains the event data.
2.0.0.0
Method
System.Void
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Raises the event.
A that contains the event data.
2.0.0.0
Method
System.Void
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Raises the event.
An that contains the event data.
2.0.0.0
Method
System.Void
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Raises the event.
An that contains the event data.
2.0.0.0
Property
2.0.0.0
System.ComponentModel.DefaultValue(System.Windows.Forms.ToolStripItemOverflow.Never)
System.Windows.Forms.ToolStripItemOverflow
To be added.
To be added.
Gets or sets a value indicating whether the is attached to the or the or whether it can float between the two.
Method
2.0.0.0
System.Boolean
To be added.
To be added.
To be added.
To be added.
To be added.
Method
2.0.0.0
System.Boolean
To be added.
Processes a mnemonic character.
true if the character was processed as a mnemonic by the control; otherwise, false.
The character to process.
Method
2.0.0.0
System.Void
To be added.
Sets the size and location of the .
A that represents the size and location of the .
Property
2.0.0.0
System.ComponentModel.DefaultValue(null)
System.ComponentModel.Localizable(true)
System.String
To be added.
Use this property to get or set the text that is displayed as the shortcut key.
Gets or sets the shortcut key text.
Property
System.ComponentModel.DefaultValue(System.Windows.Forms.Keys.None)
System.ComponentModel.Localizable(true)
System.Windows.Forms.Keys
To be added.
Use the property to assign a key combination to a menu command, such as CTRL+C for the Copy command. You can use shortcut keys instead of or in addition to access keys, which are underscored letters in menus or menu items used with the ALT key. Define access keys in code by typing an ampersand (&) before the letter you want to use for an access key.
Gets or sets the shortcut keys associated with the .
2.0.0.0
Property
2.0.0.0
System.ComponentModel.DefaultValue(true)
System.ComponentModel.Localizable(true)
System.Boolean
To be added.
To be added.
Gets or sets a value indicating whether the shortcut keys that are associated with the are displayed next to the .
System.ComponentModel.Design.Serialization.DesignerSerializer("System.Windows.Forms.Design.ToolStripMenuItemCodeDomSerializer, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
System.Windows.Forms.Design.ToolStripItemDesignerAvailability(System.Windows.Forms.Design.ToolStripItemDesignerAvailability.MenuStrip | System.Windows.Forms.Design.ToolStripItemDesignerAvailability.ContextMenuStrip)