FMX.TextLayout.TTextLayout.Attributes
Delphi
property Attributes[const Index: Integer]: TTextAttributedRange read GetAttribute;
C++
__property TTextAttributedRange* Attributes[const int Index] = {read=GetAttribute};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| property | public | FMX.TextLayout.pas FMX.TextLayout.hpp |
FMX.TextLayout | TTextLayout |
Description
Provides access to text attributes.
Index specifies the position in the attributes list.
Attributes gets the TTextAttributedRange at Index position in the text attributes list of the current TTextLayout.
To add new attributes to the list, use the AddAttribute method, and to delete attributes use the DeleteAttribute or DeleteAttributeRange method. To empty the attributes list, use the ClearAttributes method.
Use Attributes to get access to the fonts, colors or ranges to be used by the current TTextLayout.
See Also
- FMX.TextLayout.TTextLayout.AttributesCount
- FMX.TextLayout.TTextAttributedRange
- FMX.TextLayout.TTextRange
- FMX.TextLayout.TTextAttribute
- FMX.TextLayout.TTextLayout.AddAttribute
- FMX.TextLayout.TTextLayout.ClearAttributes
- FMX.TextLayout.TTextLayout.DeleteAttribute
- FMX.TextLayout.TTextLayout.DeleteAttributeRange
- FMX.TextLayout.TTextLayout
- System.UITypes.TAlphaColor
- FMX.TextLayout.TTextAttribute.Font