API:System.Rtti.TRttiType.ToString
Delphi
function ToString: string; override;
C++
virtual System::UnicodeString __fastcall ToString();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Rtti.pas System.Rtti.hpp |
System.Rtti | TRttiType |
Description
Returns a string containing the class name.
System.Rtti.TRttiType.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.