共用方式為


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

屬性值

根據屬性SizeType,行的偏好高度(像素數)或TableLayoutPanel百分比(百分比)為準。

例外狀況

設定此屬性時,值小於 0。

備註

Height該物業會根據不同SizeType物業有不同的意義。 下表描述了 可能的 Height意義。

SizeType Height 詮釋
Absolute 偏好的行高度(像素單位)(忽略分數部分)。
AutoSize 不適用—— Height 該屬性被忽略。
Percent 以包含表格的百分比計算的偏好列高。

適用於

另請參閱