Table of Contents

TTMSFNCGraphics.DrawText Method

Renders AText at a single floating-point point, optionally rotated by AAngle degrees.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphics

Syntax

function DrawText(APoint: TPointF; AText: String; AAngle: Single = 0 ;ASupportHTML: Boolean = True; ATestAnchor: Boolean = False; AX: Single = -1; AY: Single = - 1): String; overload; virtual;

Parameters

Name Description
APoint Top-left position at which the text is drawn.
AText Text string to render.
AAngle Rotation angle in degrees, applied clockwise. Default is 0.
ASupportHTML When True, interprets HTML tags in the text. Default is True.
ATestAnchor When True, tests whether the point (AX, AY) is over an HTML anchor. Default is False.
AX X coordinate used for anchor hit-testing when ATestAnchor is True. Default is -1 (disabled).
AY Y coordinate used for anchor hit-testing when ATestAnchor is True. Default is -1 (disabled).

Returns

The href of the HTML anchor at (AX, AY), or an empty string if no anchor was hit.