Sign in Join
FPDoc Onlineexperiment

TStrings.GetCapacity function

Member of TStringsprotectedIn unit Classes

Abstract Read handler for the Capacity property.

Declaration

pascal
function GetCapacity: Integer; virtual

Description

GetCapacity is the read handler for the Capacity property. The implementation in TStrings will return 0.

Descendant classes can override this method. It should return the current number of strings that can be held by the stringlist before it attempts to expand it's storage space.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.