System.Classes.TStrings.GetCapacity

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetCapacity: Integer; virtual;

C++

virtual int __fastcall GetCapacity();

Properties

Type Visibility Source Unit Parent
function protected
System.Classes.pas
System.Classes.hpp
System.Classes TStrings

Description

Returns the currently allocated size of the list of strings.

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.

See Also