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() {}
};
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
record struct |
public | FMX.TextLayout.pas FMX.TextLayout.hpp |
FMX.TextLayout | FMX.TextLayout |
説明
テキスト属性を保持します。
Font
は、テキストのフォントを保持します。Color
は、テキストの色を保持します。
TTextAttribute は、次の 3 つの方法で作成できます:
- 既存のフォントと色から作成
- 既存の TTextAttribute から作成(色は新規)
- 既存の TTextAttribute から作成(フォントは新規)