System.Windows.Forms.CheckBox.CheckState Property

Gets or sets the state of the System.Windows.Forms.CheckBox.

Syntax

[System.ComponentModel.Bindable(true)]
[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.All)]
[System.ComponentModel.DefaultValue(System.Windows.Forms.CheckState.Unchecked)]
public CheckState CheckState { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If the CheckBox.ThreeState property is set to false, the CheckBox.CheckState property value can only be set to CheckState.Indeterminate in code and not by user interaction.

The following table describes the System.Windows.Forms.Appearance of the System.Windows.Forms.CheckBox control in its different states for the Normal and Button style control CheckBox.Appearance.

Checked

The System.Windows.Forms.CheckBox displays a check mark.

The control appears sunken.

Unchecked

The System.Windows.Forms.CheckBox is empty.

The control appears raised.

Indeterminate

The System.Windows.Forms.CheckBox displays a check mark and is shaded.

The control appears flat.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0