Skip to main content
Pie
ra0

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCanvas.TextOut(Integer,Integer,string) Method

Draws a text string at the specified position on the canvas.

#Declaration

Delphi
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