TcxListBox.Count Property
Specifies the number of items within the list box control.
Declaration
property Count;
Property Value
Type |
---|
Integer |
Remarks
Commonly you will need the Count property to determine the number of items within the list box. Assigning values to this property makes sense only when the list box is virtual.
Setting the ListStyle property to lbVirtual or lbVirtualOwnerDraw makes the list box virtual. This means that you intend to supply data to the list box by handling the OnData event. The event fires the number of times specified by the Count property value. Each time it fires, you can provide data for a single list box item.
Note
when the list box control is virtual, you will also need to handle the OnDataFind and OnDataObject events.
See Also