System.SysUtils.TStringBuilder.Length

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Length: Integer read GetLength write SetLength;

C++

__property int Length = {read=GetLength, write=SetLength, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TStringBuilder

Description

Gets or sets the size of the character array stored in this TStringBuilder instance.

Use Length to get or set the size of the character array stored in this TStringBuilder instance. If the value of Length is lowered, the character array is truncated. If the value is raised, the character array is padded with spaces and the Capacity property is increased. An error occurs if you attempt to increase Length to be larger than the MaxCapacity property.

If a value of zero is assigned to the Length property, the TStringBuilder instance is cleared.

See Also

Code Examples