FMX.TextLayout.TTextLayout
Delphi
TTextLayout = class abstract
C++
class PASCALIMPLEMENTATION TTextLayout : public System::TObject
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FMX.TextLayout.pas FMX.TextLayout.hpp |
FMX.TextLayout | FMX.TextLayout |
Description
Abstract class that provides mechanisms to render text quickly.
Such rendering systems are supported by DirectWrite API (Windows) and Core Text framework (OS X).
To create this class, use TTextLayoutManager.
Use AddAttribute to assign text block properties like TTextRange (starting position and length) and TTextAttribute (font and color).
When changing several properties of the layout, you should use the BeginUpdate and EndUpdate procedures.
Use RenderLayout to render the text on a canvas.
The PositionAtPoint method returns the position in text by the position's coordinates.
The RegionForRange method returns the array of the rectangles surrounding the range of the text specified in ARange.
Another feature is the ability to convert text to a TPathData object by calling the ConvertToPath procedure.
See Also
- FireMonkey Text Layout
- FMX.TextLayout.TTextLayoutManager
- FMX.TextLayout.TTextLayout.AddAttribute
- FMX.TextLayout.TTextRange
- FMX.TextLayout.TTextAttribute
- FMX.TextLayout.TTextAttributedRange
- FMX.TextLayout.TTextLayout.BeginUpdate
- FMX.TextLayout.TTextLayout.EndUpdate
- FMX.TextLayout.TTextLayout.RenderLayout
- FMX.TextLayout.TTextLayout.PositionAtPoint
- FMX.TextLayout.TTextLayout.RegionForRange
- FMX.TextLayout.TTextLayout.ConvertToPath