ToolStripButton::CheckState Property
.NET Framework (current version)
Gets or sets a value indicating whether the ToolStripButton is in the pressed or not pressed state by default, or is in an indeterminate state.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System.Windows.Forms::CheckStateOne of the System.Windows.Forms::CheckState values. The default is Unchecked.
| Exception | Condition |
|---|---|
| InvalidEnumArgumentException | The value assigned is not one of the System.Windows.Forms::CheckState values. |
Set the CheckState to Indeterminate when you do not want to set a default state.
.NET Framework
Available since 2.0
Available since 2.0
Show: