FMX.Controls.TTextControl.ToString

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ToString: string; override;

C++

virtual System::UnicodeString __fastcall ToString();

Properties

Type Visibility Source Unit Parent
function public
FMX.Controls.pas
FMX.Controls.hpp
FMX.Controls TTextControl

Description

Returns a string containing the class name followed by the text that is rendered over the surface of this TTextControl object.

ToString returns a string containing the concatenation of two substrings:

  • The first substring contains the class name of the instance that is being called (retrieved by TObject.ToString). For example, calling on a TCheckBox instance returns a substring containing TCheckBox.
  • The second substring contains the text from the Text property. This is the text that will be rendered over the surface of the object in which ToString is called.

See Also