FMX.TextLayout.TTextLayout.Attributes

From RAD Studio API Documentation
Jump to: navigation, search

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