API:System.SysUtils.TStringBuilder.ToString

提供: RAD Studio API Documentation
移動先: 案内検索

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 */;

プロパティ

種類 可視性 ソース ユニット
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TStringBuilder

説明

クラス名を表す文字列を返します。

System.SysUtils.TStringBuilder.ToString は System.TObject.ToString を継承しています。以下の内容はすべて System.TObject.ToString を参照しています。

クラス名を表す文字列を返します。

デフォルトでは、ToString は、呼び出し先のインスタンスのクラス名を表す文字列を返します。

例: TButton インスタンスに対して ToString を呼び出すと、"TButton" という文字列が返されます。

メモ:  ToString は、ユーザー定義の派生クラスでオーバーライドするためのもので、ユーザー定義オブジェクトの文字列表現を定義するのに使用されます。

関連項目