API:System.Classes.TStringWriter.ToString

提供:RAD Studio API Documentation

Delphi

function ToString: string; override;

C++

virtual System::UnicodeString __fastcall ToString();

プロパティ

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

説明

クラス名を表す文字列を返します。 System.Classes.TStringWriter.ToString は System.TObject.ToString を継承しています。以下の内容はすべて System.TObject.ToString を参照しています。

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

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

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

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

関連項目