RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComboBoxExStrings.GetCapacity Method

Returns the currently allocated size of the list of strings.

Pascal
function GetCapacity: Integer; override;
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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!