FMX.TextLayout.TTextAttribute
Delphi
  TTextAttribute = record
  public
    Font: TFont;
    Color: TAlphaColor;
    constructor Create(const AFont: TFont; const AColor : TAlphaColor); overload;
    constructor Create(const AExisting: TTextAttribute; const ANewFont: TFont); overload;
    constructor Create(const AExisting: TTextAttribute; const ANewColor: TAlphaColor); overload;
  end;
C++
struct DECLSPEC_DRECORD TTextAttribute
{
public:
    Fmx::Graphics::TFont* Font;
    System::Uitypes::TAlphaColor Color;
    __fastcall TTextAttribute(Fmx::Graphics::TFont* const AFont, const System::Uitypes::TAlphaColor AColor)/* overload */;
    __fastcall TTextAttribute(const TTextAttribute &AExisting, Fmx::Graphics::TFont* const ANewFont)/* overload */;
    __fastcall TTextAttribute(const TTextAttribute &AExisting, const System::Uitypes::TAlphaColor ANewColor)/* overload */;
    TTextAttribute() {}
};
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
record struct  | 
		public | FMX.TextLayout.pas FMX.TextLayout.hpp  | 
        FMX.TextLayout | FMX.TextLayout | 
Description
Holds text attributes.
Font keeps the font of the text. Color keeps the color of the text.
TTextAttribute can be created in three ways:
- From an existing font and color
 - From an existing TTextAttribute, with a new color
 - From an existing TTextAttribute, with a new font