TcxCheckListBoxItem.Checked Property
Specifies whether the current item is checked or unchecked.
Declaration
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