Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Type Default
TcxCheckBoxState cbsUnchecked

#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