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 */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
procedure function |
public | FMX.TextLayout.pas FMX.TextLayout.hpp |
FMX.TextLayout | TTextLayout |
Description
Ajoute les propriétés de texte spécifiées à la liste des attributs du TTextLayout en cours.
Il existe deux façons d'ajouter des propriétés de texte :
- en tant que paire des objets TTextRange et TTextAttribute, en utilisant la première méthode surchargée. La plage et les attributs (fonte et couleur) sont spécifiés séparément.
- en tant qu'objet TTextAttributedRange, en utilisant la seconde méthode surchargée.
Les propriétés de texte du TTextLayout sont accessibles par le biais de la propriété Attributes.
Pour supprimer des propriétés de texte de la liste des attributs, utilisez la méthode DeleteAttribute ou bien la méthode DeleteAttributeRange.
Prise en charge des plates-formes
Ces attributs ne sont pas pris en charge sous Windows.
Voir aussi
- Disposition de texte FireMonkey
- 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