RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStrings.GetCapacity Method

Returns the currently allocated size of the list of strings.

Pascal
function GetCapacity: Integer; virtual;
C++
virtual __fastcall int GetCapacity();

GetCapacity is the protected read implementation of the Capacity property. In TStrings, GetCapacity returns the value of the Count property. Descendants of TStrings can override this property to let a string list allocate memory for entries that have not been added to the list. 

 

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