Rectangle.Width 属性
定义
public:
property int Width { int get(); void set(int value); };
public int Width { get; set; }
member this.Width : int with get, set
Public Property Width As Integer
属性值
此 Rectangle 结构的宽度。The width of this Rectangle structure. 默认值为 0。The default is 0.
注解
更改 Width 属性也会导致 Right 的属性发生更改 Rectangle 。Changing the Width property will also cause a change in the Right property of the Rectangle. 绘制矩形的单位由 PageUnit PageScale 用于绘制的图形对象的和属性确定。The units the rectangle is drawn in is determined by the PageUnit and PageScale properties of the graphics object used for drawing. 默认单位是像素。The default unit is pixels.