Skip to content

TUnicodeStringBuilder.Capacity

Current capacity of the string buffer.

Declaration

Source position: syssbh.inc line 126

public property Capacity: Integer;

Description

Capacity can be used to get or set the capacity of the string buffer (in characters). When setting the capacity, the new length is checked whether it lies within the maximum capacity (MaxCapacity) for the string buffer: if not, an ERangeError exception is raised.

See also

Name Description
MaxCapacity Maximum capacity of the string buffer.
Length Currentl length of the string buffer.
ERangeError Range check error.