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

TcxCustomCheckListBox.Count Property

Returns the number of items displayed in the checklist box.

#Declaration

Delphi
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:

Delphi
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