語言

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

定義

初始化一個新的 實 Int32Rect 例,其座標為指定的 X 和 Y ,且 為指定的 WidthHeight和 。

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該實例指定矩形的高度。

適用於