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。

備註

根據 屬性,屬性 Height 會採用不同的意義 SizeType 。 下表描述 的可能意義 Height

SizeType Height 解釋
Absolute ) 略過以圖元為單位的慣用資料列高度 (小數部分。
AutoSize 不適用 - Height 忽略 屬性。
Percent 慣用的資料列高度,以包含資料表的百分比表示。

適用於

另請參閱