API:FMX.ComboEdit.TComboEditModel.GetTextSettingsClass

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function GetTextSettingsClass: TTextSettingsInfo.TCustomTextSettingsClass; override;

C++

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

Properties

Type Visibility Source Unit Parent
function protected
FMX.ComboEdit.pas
FMX.ComboEdit.hpp
FMX.ComboEdit TComboEditModel

Description

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

FMX.ComboEdit.TComboEditModel.GetTextSettingsClass inherits from FMX.Edit.TCustomEditModel.GetTextSettingsClass. All content below this line refers to FMX.Edit.TCustomEditModel.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