共用方式為


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

定義

將矩形繪製到畫布上。

public:
 void DrawRectangle(float x, float y, float width, float height);
public void DrawRectangle (float x, float y, float width, float height);
abstract member DrawRectangle : single * single * single * single -> unit
Public Sub DrawRectangle (x As Single, y As Single, width As Single, height As Single)

參數

x
Single

開始 x 座標。

y
Single

開始 y 座標。

width
Single

矩形的寬度。

height
Single

矩形的高度。

適用於