通过


RowStyle.Height 属性

定义

获取或设置行的高度。

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

属性值

行的首选高度(以像素或百分比 TableLayoutPanel为单位),具体取决于 SizeType 属性。

例外

设置此属性时,该值小于 0。

注解

根据属性的不同,SizeTypeHeight属性将采用不同的含义。 下表描述了可能的含义 Height

SizeType Height 解释
Absolute 首选行高度(以像素为单位)(忽略小数部分)。
AutoSize 不适用 - 将 Height 忽略该属性。
Percent 作为包含表百分比的首选行高。

适用于

另请参阅