RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCheckListBox.State Property

Indicates which items are checked.

Pascal
property State [Index: Integer]: TCheckBoxState;
C++
__property TCheckBoxState State[int Index];

For each member of the Items array, State indicates whether its check box is selected (cbChecked), deselected (cbUnchecked), or grayed (cbGrayed). 

State combines the information provided by the Boolean Checked property and the Boolean ItemEnabled property: 

When Checked is true, State is cbChecked. (However, when Checked is false, State may be either cbUnchecked or cbGrayed.) 

When State is cbGrayed, ItemEnabled is false. (However, ItemEnabled may also be false when State is cbUnchecked or cbChecked.) 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!