Back to Devexpress

TcxCustomCheckBox.State Property

vcl-cxcheckbox-dot-tcxcustomcheckbox-80876180.md

latest1.5 KB
Original Source

TcxCustomCheckBox.State Property

Determines whether an editor has a checked, unchecked or grayed state.

Declaration

delphi
property State: TcxCheckBoxState read; write; default cbsUnchecked;

Property Value

TypeDefault
TcxCheckBoxStatecbsUnchecked

Remarks

The State property defines the state of your check box. It is possible to set one of the three states: checked, unchecked and grayed. A user can switch a check box to the grayed state only if the AllowGrayed property of the Properties object is set to True. But it is possible to set the grayed state via code regardless of the AllowGrayed property value.

The Checked property also allows setting the check box state. It is of type Boolean and therefore only the checked or unchecked state can be set.

The default value of the State property is cbsUnchecked.

See Also

TcxCheckBoxState

TcxCustomCheckBox.Properties

TcxCustomCheckBoxProperties.AllowGrayed

TcxCustomCheckBox Class

TcxCustomCheckBox Members

cxCheckBox Unit