FMX.TextLayout.TTextAttribute

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

  TTextAttribute = record
  public
    Font: TFont;
    Color: TAlphaColor;
    constructor Create(const AFont: TFont;
                       AColor : TAlphaColor); overload;
    constructor Create(const AExisting: TTextAttribute;
                       const ANewFont: TFont); overload;
    constructor Create(const AExisting: TTextAttribute;
                       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, System::Uitypes::TAlphaColor AColor)/* overload */;
    __fastcall TTextAttribute(const TTextAttribute &AExisting, Fmx::Graphics::TFont* const ANewFont)/* overload */;
    __fastcall TTextAttribute(const TTextAttribute &AExisting, System::Uitypes::TAlphaColor ANewColor)/* overload */;
    TTextAttribute() {}
};

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
record
struct
public
FMX.TextLayout.pas
FMX.TextLayout.hpp
FMX.TextLayout FMX.TextLayout

Beschreibung

Enthält Textattribute.

Font enthält die Schriftart des Textes. Color enthält die Farbe des Textes.

TTextAttribute kann auf drei Arten erstellt werden:

  • Aus einer vorhandenen Schriftart und Farbe
  • Aus einem vorhandenen TTextAttribute mit einer neuen Farbe
  • Aus einem vorhandenen TTextAttribute mit einer neuen Schriftart

Siehe auch