FMX.Controls.TTextControl.GetTextSettingsClass

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetTextSettingsClass: TTextSettingsInfo.TCustomTextSettingsClass; virtual;

C++

virtual TTextSettingsInfo::TCustomTextSettingsClass __fastcall GetTextSettingsClass();

Properties

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

Description

Returns the class type that instance represents the used text settings.

GetTextSettingsClass returns the TTextSettingsInfo.TCustomTextSettingsClass (or its descendant) class reference. An instance of such class provides the DefaultTextSettings, TextSettings, StyledSettings, ResultingTextSettings, and other properties handling the text representation settings of a control.

You can override the method in descendant classes to modify the default behavior. Typical implementations of GetTextSettingsClass returns the class declaring properties like the Font, FontColor, HorzAlign, and WordWrap. Some of these properties can be declared as published to be editable in the Object Inspector.

See Also