API:System.Classes.TStringWriter.ToString

From RAD Studio API Documentation
Revision as of 06:06, 8 October 2011 by PyBot (talk | contribs) (Created page with '<section begin=api /> <!--Start API Info--><ul id='childlinks'><li class='first'>'''Up to Parent: TStringWriter'''</li> </ul> <vclInfo name="ToSt...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Delphi

function ToString: string; override;

C++

virtual System::UnicodeString __fastcall ToString(void);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TStringWriter

Description

Returns a string containing the class name.

System.Classes.TStringWriter.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