[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'Classes' (#fcl)

# TStrings.GetCapacity

Abstract Read handler for the TStrings.Capacity property.

## Declaration

`protected function TStrings.GetCapacity: Integer; virtual;`

## Description

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

Descendent 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

TStrings.Capacity |  | Capacity of the list, i.e. number of strings that the list can currently hold before it tries to expand.
TStrings.SetCapacity |  | Write handler for the TStrings.Capacity property.