FMX.Graphics.ITextSettings
Delphi
ITextSettings = interface
C++
__interface INTERFACE_UUID("{FD99635D-D8DB-4E26-B36F-97D3AABBCCB3}") ITextSettings : public System::IInterface
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
interface class |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | FMX.Graphics |
Description
Declares methods and properties to manage the most common text representation properties of general text objects independently of the particular types of these objects.
The ITextSettings interface is implemented in each class containing text objects; for example, in TText, TTextControl, TCustomEdit, TMemo, and others. Therefore, you can use methods of the ITextSettings interface to manage properties of text objects in instances of these classes independently of the particular types of text objects. See Setting Text Parameters in FireMonkey for more information on how to do this.
Remember that when you are changing the value of a property (for example of the TextSettings.FontColor property), then the actual changing of the control's view happens only if the StyledSettings property does not contain the TStyledSetting.FontColor constant. The following table shows which TStyledSetting constants control handling of which TTextSettings text representation properties.
Relation between TStyledSetting constants and TTextSettings properties
TStyledSetting Constant |
Dependent TTextSettings Properties |
Meaning |
---|---|---|
Font name. | ||
Font size. | ||
Font style (italic, bold). | ||
Font color. | ||
How to align and show the text. |