FMX.TextLayout.TTextAttribute

提供: RAD Studio API Documentation
移動先: 案内検索

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() {}
};

プロパティ

種類 可視性 ソース ユニット
record
struct
public
FMX.TextLayout.pas
FMX.TextLayout.hpp
FMX.TextLayout FMX.TextLayout

説明

テキスト属性を保持します。

Font は、テキストのフォントを保持します。Color は、テキストのを保持します。

TTextAttribute は、次の 3 つの方法で作成できます:

  • 既存のフォントと色から作成
  • 既存の TTextAttribute から作成(色は新規)
  • 既存の TTextAttribute から作成(フォントは新規)

関連項目