Skip to content

TUnicodeStringBuilder.Length

Currentl length of the string buffer.

Declaration

Source position: syssbh.inc line 125

public property &Length: Integer;

Description

Length can be used to get or set the current length (in characters) of the string buffer. When setting the length, the new length is checked whether it lies within the maximum capacity (MaxCapacity) for the string buffer: if not, an ERangeError exception is raised. The capacity of the buffer will be adjusted so the buffer has anough capacity to accommodate the new length.

See also

Name Description
MaxCapacity Maximum capacity of the string buffer.
Capacity Current capacity of the string buffer.
ERangeError Range check error.