FMX.Graphics.ITextSettings

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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

Family

TFont.Family

Font name.

Size

TFont.Size

Font size.

Style

TFont.Style

Font style (italic, bold).

FontColor

FontColor

Font color.

Other

HorzAlign, VertAlign,
Trimming, and WordWrap.

How to align and show the text.

See Also