From RAD Studio API Documentation
Jump to: navigation, search


function GetTextSettingsClass: TTextSettingsInfo.TCustomTextSettingsClass; override;


virtual Fmx::Controls::TTextSettingsInfo::TCustomTextSettingsClass __fastcall GetTextSettingsClass();


Type Visibility Source Unit Parent
function protected
FMX.StdCtrls TCustomButton


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

FMX.StdCtrls.TCustomButton.GetTextSettingsClass inherits from FMX.StdCtrls.TPresentedTextControl.GetTextSettingsClass. All content below this line refers to FMX.StdCtrls.TPresentedTextControl.GetTextSettingsClass.

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