Rectangle.X 属性

定义

获取或设置此 Rectangle 结构左上角的 x 坐标。Gets or sets the x-coordinate of the upper-left corner of this Rectangle structure.

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

属性值

Int32

Rectangle 结构左上角的 x 坐标。The x-coordinate of the upper-left corner of this Rectangle structure. 默认值为 0。The default is 0.

注解

更改 X 属性也会导致 Right 的属性发生更改 RectangleChanging the X property will also cause a change in the Right property of the Rectangle.

适用于