FMX.Controls.TTextControl.ResultingTextSettings

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property ResultingTextSettings: TTextSettings read GetResultingTextSettings;

C++

__property Fmx::Graphics::TTextSettings* ResultingTextSettings = {read=GetResultingTextSettings};

Properties

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

Description

Keeps final values of text representation properties. These values are really used to draw texts in a control.

ResultingTextSettings keeps a TTextSettings object that manages the final values of the text representation properties. These values are really used to draw texts in a control.

To obtain values stored in ResultingTextSettings, a control uses the StyledSettings property. For example, if StyledSettings contains the TStyledSetting.Family value, then the TFont.Family value is taken from the DefaultTextSettings. (That is the font family name defined in the loaded style is used. The font family name defined by the programmer in the Object Editor is ignored.) Oppositely, if StyledSettings does not contain TStyledSetting.Family, then the font family name defined by the programmer in the Object Editor is used and the font family name defined in the loaded style is ignored.

The TTextSettings class define properties keeping values of the FontColor, TextAlign, VertTextAlign, Trimming, WordWrap, and Font (TFont.Family, TFont.Size, TFont.Style) elements defining visual parameters of a text representation.

RecalculateTextSettings updates the ResultingTextSettings.

See Also