FMX.StdCtrls.TCheckBox.GetTextSettingsClass

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetTextSettingsClass: TTextSettingsInfo.TCustomTextSettingsClass; override;

C++

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

Properties

Type Visibility Source Unit Parent
function protected
FMX.StdCtrls.pas
FMX.StdCtrls.hpp
FMX.StdCtrls TCheckBox

Description

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

FMX.StdCtrls.TCheckBox.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