Rectangle.Y 屬性

定義

取得或設定這個 Rectangle 結構的左上角 Y 座標。Gets or sets the y-coordinate of the upper-left corner of this Rectangle structure.

public:
 property int Y { int get(); void set(int value); };
public int Y { get; set; }
member this.Y : int with get, set
Public Property Y As Integer

屬性值

Int32

這個 Rectangle 結構左上角的 Y 座標。The y-coordinate of the upper-left corner of this Rectangle structure. 預設值是 0。The default is 0.

備註

變更 Y 屬性也會在的屬性中造成變更 Bottom RectangleChanging the Y property will also cause a change in the Bottom property of the Rectangle.

適用於