RowStyle.Height 属性

定义

获取或设置行的高度。Gets or sets the height of a row.

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 的百分比表示。The preferred height of a row in pixels or percentage of the TableLayoutPanel, depending on the SizeType property.

异常

设置此属性时,属性值小于 0。The value is less than 0 when setting this property.

注解

属性将采用不同的SizeType含义, 具体取决于属性。 HeightThe Height property will take on different meanings depending on the SizeType property. 下表描述了的Height可能含义。The following table describes the possible meanings of Height.

SizeTypeSizeType value Height破解Height interpretation
Absolute 首选行高 (以像素为单位) (忽略小数部分)。The preferred row height in pixels (fractional portion ignored).
AutoSize 不适用- Height属性被忽略。Not applicable - the Height property is ignored.
Percent 以包含表的百分比形式表示的首选行高。The preferred row height as a percentage of the containing table.

适用于

另请参阅