FMX.TextLayout.TTextLayout.AddAttribute
Delphi
procedure AddAttribute(const ARange: TTextRange; const AAttribute : TTextAttribute); overload;
procedure AddAttribute(const AAttributeRange: TTextAttributedRange); overload;
C++
void __fastcall AddAttribute(const TTextRange &ARange, const TTextAttribute &AAttribute)/* overload */;
void __fastcall AddAttribute(TTextAttributedRange* const AAttributeRange)/* overload */;
Inhaltsverzeichnis
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
procedure function |
public | FMX.TextLayout.pas FMX.TextLayout.hpp |
FMX.TextLayout | TTextLayout |
Beschreibung
Fügt der Attributes-Liste des aktuellen TTextLayout-Objekts die angegebenen Texteigenschaften hinzu.
Die Texteigenschaften können auf zwei Arten hinzugefügt werden:
- Als Paar von TTextRange- und TTextAttribute-Objekten, indem die erste überladene Methode verwendet wird. Der Bereich und die Attribute (Schriftart und Farbe) werden separat angegeben.
- Als TTextAttributedRange-Objekt, indem die zweite überladene Methode verwendet wird.
Auf die Texteigenschaften des aktuellen TTextLayout-Objekts kann über die Eigenschaft Attributes zugegriffen werden.
Mit der Methode DeleteAttribute oder DeleteAttributeRange können Sie die Texteigenschaften aus der Attributes-Liste entfernen.
Plattformunterstützung
Farbattribute werden nicht in Windows unterstützt.
Siehe auch
- FireMonkey-Textlayout
- FMX.TextLayout.TTextAttributedRange
- FMX.TextLayout.TTextRange
- FMX.TextLayout.TTextAttribute
- FMX.TextLayout.TTextLayout.Attributes
- FMX.TextLayout.TTextLayout.DeleteAttribute
- FMX.TextLayout.TTextLayout.DeleteAttributeRange
- FMX.TextLayout.TTextLayout
- System.UITypes.TAlphaColor
- FMX.TextLayout.TTextAttribute.Font