API:System.SysUtils.TStringBuilder.ToString

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ToString: string; overload; override;
function ToString(UpdateCapacity: Boolean): string; reintroduce; overload;
function ToString(StartIndex: Integer; StrLength: Integer): string; reintroduce; overload;

C++

virtual System::UnicodeString __fastcall ToString()/* overload */;
HIDESBASE System::UnicodeString __fastcall ToString(bool UpdateCapacity)/* overload */;
HIDESBASE System::UnicodeString __fastcall ToString(int StartIndex, int StrLength)/* overload */;

Properties

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

Description

Returns a string containing the class name.

System.SysUtils.TStringBuilder.ToString inherits from System.TObject.ToString. All content below this line refers to System.TObject.ToString.

Returns a string containing the class name.

By default, the ToString returns a string containing the class name of the instance that is being called.

For example, calling ToString on a TButton instance returns a string containing "TButton".

Note: ToString is intended to be overridden in user-derived classes, to provide consumer objects with a string representation.

See Also