DrawText Method
Draws a text, using a font defined by SetFont method.
Object.DrawText(tnLeft, tnTop, tcText [, tnRotate [, tcLinkName [, tcLinkRef [, tcBookmark [, tcTooltip [, tnmode [, liCP [, tnOutlineStyle [, liOutlineR [, liOutlineG [, liOutlineB [, lcOutlineParent [, tnRotationPoint [,liInvisible [,tnRotationXOffset [, tnRotationYOffset]]]]]]]]]]]]]]]) Object.DrawText(tcText [, tnRotate [, [, tcLinkName [, tcLinkRef [, tcBookmark [, tcTooltip [, tnmode [, liCP [, tnOutlineStyle [, liOutlineR [, liOutlineG [, liOutlineB [, lcOutlineParent [, tnRotationPoint [, liInvisible [, tnRotationXOffset [, tnRotationYOffset]]]]]]]]]]]]]]])
Parameters
tnLeft, tnTop
The coordinates where the text will be drawn. If the second syntax is used (without the coordinates), the text will be drawn at the current position: which is either a position defined by SetPos() method or a the end of an output if the previous DrawText() method call.
tcText
The text to be drawn
tnRotate
The text rotation angle in degrees. The label will be rotated counterclockwise. Optional, default value = 0.
tcLinkName
If this parameter is filled, the text will be a named target of a hyperlink. (see tcLinkRef parameter).
tcLinkRef
If this parameter is filled, the text will be a hyperlink. It will navigate to a target in the local document with tcLinkRef name. To navigate to a http URL, include “http://” at the beginning of the parameter.
tcBookmark
If not empty, the parameter contains a name of a bookmark/outline that will be created and will navigate to this text.
tcTooltip
The tooltip displayed when hovering mouse over this text.
tnMode
Opaque/transparent mode (since XFRX 15.7).
0 … “opaque
1 …“transparent”
liCP
Code page of text (since XFRX 15.7)
tnOutlineStyle
Outline style (since XFRX 19.0)
0 ... normal
1 ... italic
2 ... bold
3 ... bold+italic
liOutlineR, liOutlineG, liOutlineB
Red, green and blue components of the outline foreground color (since XFRX 19.0)
lcOutlineParent
If not empty, the parameter contains a parent name of a bookmark/outline. (since XFRX 19.0)
tnRotationPoint (since XFRX 21.0)
The point within the rectangle around which the text is rotated. The allowed values are 0..8, optional, default value = 0 (left, top). Please see the picture on the right for the point positions .
liInvisible
Invisible flag (since XFRX 21.0).
tnRotationXOffset
Rotation X Offset in foxels from the left top corner. (since XFRX 21.1)
tnRotationYOffset
Rotation Y Offset in foxels from the left top corner. (since XFRX 21.1)
Remarks
Applies To: XFRX#DRAW, XFRX#XML