Int32Rect(Int32, Int32, Int32, Int32) 建構函式

定義

使用指定的 Int32RectX 座標,以及指定的 YWidth,初始化 Height 的新執行個體。

public:
 Int32Rect(int x, int y, int width, int height);
public Int32Rect (int x, int y, int width, int height);
new System.Windows.Int32Rect : int * int * int * int -> System.Windows.Int32Rect
Public Sub New (x As Integer, y As Integer, width As Integer, height As Integer)

參數

x
Int32

X 執行個體的 Int32Rect,指定矩形左上角的 x 座標。

y
Int32

Y 執行個體的 Int32Rect,指定矩形左上角的 y 座標。

width
Int32

Width 執行個體的 Int32Rect,指定矩形的寬度。

height
Int32

Height 執行個體的 Int32Rect,指定矩形的高度。

適用於