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.LineTo(Integer,Integer) Method

Draws a single straight line between the current pen position and a specified point on the canvas.

#Declaration

Delphi
procedure LineTo(X: Integer; Y: Integer);

#Parameters

Name Type
X Integer
Y Integer

#Remarks

Call this procedure and pass the coordinates of a point as the X and Y parameters to draw a line between this point and the current pen position according to the active pen settings. A LineTo procedure call also moves the current pen position to the target point on the canvas, like the MoveTo procedure does.

See Also