Skip to content

TFPHashObjectList.Capacity

Capacity of the list.

Declaration

Source position: contnrs.pp line 339

public property Capacity: Integer;

Description

Capacity returns the current capacity of the list. The capacity is expanded as more elements are added to the list. If a good estimate of the number of elements that will be added to the list, the property can be set to a sufficiently large value to avoid reallocation of memory each time the list needs to grow.

See also

Name Description
Count Current number of elements in the list.
Items Indexed array with object instances.