FMX.TextLayout.TTextLayout

From Appmethod Libraries
Jump to: navigation, search

System.TObjectTTextLayout

Object Pascal

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 (Mac 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.

Note: On Windows versions lower than Windows Vista below SP1, the used render system is GDI+, otherwise it is DirectWrite.


See Also