CheckState Enumeration

 

Specifies the state of a control, such as a check box, that can be checked, unchecked, or set to an indeterminate state.

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

type CheckState

Member nameDescription
Checked

The control is checked.

Indeterminate

The control is indeterminate. An indeterminate control generally has a shaded appearance.

Unchecked

The control is unchecked.

Multiple methods in CheckBox, CheckedListBox, and ItemCheckEventArgs use this enumeration.

System_CAPS_noteNote

Use an indeterminately checked control when you do not want to set a default value.

The following code example demonstrates the use of the CheckState enumeration.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: