共用方式為


ICanvas.DrawLine(Single, Single, Single, Single) 方法

定義

在畫布上繪製兩個點之間的線條。

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)

參數

x1
Single

開始 x 座標。

y1
Single

開始 y 座標。

x2
Single

結束 x 座標。

y2
Single

結束 x 座標。

適用於