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

TcxCheckListBoxItem.Checked Property

Specifies whether the current item is checked or unchecked.

#Declaration

Delphi
property Checked: Boolean read; write;

#Property Value

Type
Boolean

#Remarks

Use the Checked property to get and set the state of an item. This property allows switching between the checked and unchecked states. If you allow use of the grayed state, see the State property instead to specify the item’s state as this allows you to switch between checked, unchecked and grayed states. Note: to enable the grayed state, set the control’s AllowGrayed property to True.

The Checked property returns True for the checked state and False for the unchecked and grayed states.

The following example shows how to toggle the state of the second item in a checklist box:

cxCheckListBox1.Items[1].Checked := not cxCheckListBox1.Items[1].Checked;
See Also