FMX.TextLayout.TTextAttribute
Delphi
TTextAttribute = record
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