RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStrings.Capacity Property

Indicates the number of strings the TStrings object can hold.

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

Read Capacity to determine the currently allocated size of the string list. For the TStrings object, reading Capacity returns the Count property, and setting Capacity does nothing. Descendants of TStrings can override this property to allow a string list to allocate memory for entries that have not been added to the list. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!