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

TdxFastList.Count Property

Specifies the number of pointers stored in the list.

#Declaration

Delphi
property Count: Integer read; write;

#Property Value

Type
Integer

#Remarks

Use this property to:

  • Obtain the maximum number of stored pointers accessible via the Items property. The maximum index is the Count property value minus one.

  • Append a number of nil (in Delphi code) or NULL/nullptr (in C++Builder code) to the ordered pointer list. Increment the Count property by a specific value to accomplish this task. If the resulting number of stored pointers exceeds the Capacity property value, the Count property’s setter updates the list capacity accordingly.

  • Remove the number of stored pointers at the end of the list. To do this, decrement the Count property by the corresponding value.

Do not set the Count property to a negative value. Otherwise, the “List count out of bounds” exception occurs.

See Also