ToolStripButton::CheckState Property

 

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.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property CheckState CheckState {
	CheckState get();
	void set(CheckState value);
}

Property Value

Type: System.Windows.Forms::CheckState

One 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
Return to top
Show: