Skip to main content

TdxFastList.Count Property

Specifies the number of pointers stored in the list.

Declaration

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