RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TListItems.Count Property

Indicates the number of items in the Item property array.

Pascal
property Count: Integer;
C++
__property int Count;

Use Count to determine the number of items displayed by the list view. Count provides an upper bound when iterating through the individual TListItem objects in the Item property array. 

Set the Count when the list view's OwnerData property is false to make the control allocate its internal data structures for the specified number of items. This prevents the control from having to allocate the data structures every time an item is added. 

Set the Count when the list view's OwnerData property is true to set the virtual number of items that the control contains. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!