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

Draws a single straight line between two points on the canvas.

#Declaration

Delphi
procedure Line(X1: Integer; Y1: Integer; X2: Integer; Y2: Integer); reintroduce; overload;

#Parameters

Name Type
X1 Integer
Y1 Integer
X2 Integer
Y2 Integer

#Remarks

Call either of the overloaded procedure variants to draw a line according to the active pen settings. While the first variant accepts two points as the P1 and P2 parameter, the second variant accepts all point coordinates as four integers (X1, Y1, X2, Y2).

Note

These Line procedure implementations call the MoveTo and LineTo procedures to connect two points on the canvas.

See Also