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


Capacity of the list, i.e. number of strings that the list can currently hold before it tries to expand.


Source position: classesh.inc line 767

public property TStrings.Capacity : Integer
  read GetCapacity
  write SetCapacity;


Capacity is the number of strings that the list can hold before it tries to allocate more memory.

TStrings returns TStrings.Count when read. Trying to set the capacity has no effect. Descendant classes such as TStringlist can override this property such that it actually sets the new capacity.

See also



Standard implementation of the TStrings class.



Number of strings in the list.

Documentation generated on: Jun 22 2020