System.TObject.ToString

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ToString: string; virtual;

C++

virtual UnicodeString __fastcall ToString(void);

Properties

Type Visibility Source Unit Parent
function public
System.pas
systobj.h
System TObject

Description

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