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.

适用于