Rectangle.Height 属性

定义

获取或设置此 Rectangle 结构的高度。Gets or sets the height of this Rectangle structure.

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

属性值

Int32

Rectangle 结构的高度。The height of this Rectangle structure. 默认值为 0。The default is 0.

注解

更改 Height 属性也会导致 Bottom 的属性发生更改 RectangleChanging the Height property will also cause a change in the Bottom 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.

适用于