TcxCanvas.TextOut(Integer,Integer,string) Method
Draws a text string at the specified position on the canvas.
Declaration
procedure TextOut(X: Integer; Y: Integer; const Text: string);
Parameters
Name | Type |
---|---|
X | Integer |
Y | Integer |
Text | string |
Remarks
Call this procedure and pass a string as the Text parameter to draw the string starting at the point whose coordinates are passed as the X and Y parameters. The TextOut procedure uses the Font settings to draw text. To identify the resulting string’s dimensions, you can call the TextExtent function.
Note
A TextOut procedure call moves the pen position to the top-right corner of the drawn text’s bounding rectangle.
See Also