Skip to main content
Pie
ra0

TcxCanvas.Line(Integer,Integer,Integer,Integer) Method

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

Declaration

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