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

TStrings.GetCapacity

Abstract Read handler for the TStrings.Capacity property.

Declaration

Source position: classesh.inc line 578

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.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.