Share via


ICanvas.DrawLine(Single, Single, Single, Single) Method

Definition

Draws a line between two points onto the canvas.

public:
 void DrawLine(float x1, float y1, float x2, float y2);
public void DrawLine (float x1, float y1, float x2, float y2);
abstract member DrawLine : single * single * single * single -> unit
Public Sub DrawLine (x1 As Single, y1 As Single, x2 As Single, y2 As Single)

Parameters

x1
Single

Starting x coordinate.

y1
Single

Starting y coordinate.

x2
Single

Ending x coordinate.

y2
Single

Ending x coordinate.

Applies to