Data.DBXPlatform.TDBXStringList.GetCapacity

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: protected
Source: System.Classes.pas
Unit: Data.DBXPlatform
Parent: TDBXStringList

Delphi

function GetCapacity: Integer; override;

Description

Returns the currently allocated size of the list of strings.

Data.DBXPlatform.TDBXStringList.GetCapacity inherits from System.Classes.TStrings.GetCapacity. All content below this line refers to System.Classes.TStrings.GetCapacity.

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