Skip to main content

TcxCustomCheckListBox.Count Property

Returns the number of items displayed in the checklist box.

Declaration

property Count;

Property Value

Type
Integer

Remarks

Read the Count property to determine the number of items displayed in the checklist box. This property is useful when you need to iterate all the control’s items, for instance. See the Items property to access individual items.

The following example demonstrates how to check all items at run-time:

var
  I: Integer;
//...
  for i:=0 to cxCheckListBox1.Count-1 do
    cxCheckListBox1.Checked[i] := True;

Below is the result of running this code for a sample check list box.

See Also