TTMSFNCGraphicsContext.DrawText Method
Renders text inside a rectangle with the specified layout, alignment, trimming, and rotation.
API unit family: TMSFNCGraphics
Declaring type: TTMSFNCGraphicsContext
Syntax
procedure DrawText(AText: string; ARect: TRectF; AWordWrapping: Boolean; AHorizontalAlign, AVerticalAlign: TTMSFNCGraphicsTextAlign; ATrimming: TTMSFNCGraphicsTextTrimming; AAngle: Single); virtual; abstract;
Parameters
| Name | Description |
|---|---|
AText |
Text string to render. |
ARect |
Layout rectangle in floating-point pixels. |
AWordWrapping |
When True, wraps text at word boundaries. |
AHorizontalAlign |
Horizontal alignment within ARect. |
AVerticalAlign |
Vertical alignment within ARect. |
ATrimming |
Trimming style applied when text exceeds the layout rectangle. |
AAngle |
Rotation angle in degrees applied to the text layout rectangle. |