CheckedListBox.ItemHeight 屬性

定義

取得項目區域的高度。

public:
 virtual property int ItemHeight { int get(); void set(int value); };
[System.ComponentModel.Browsable(false)]
public override int ItemHeight { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.ItemHeight : int with get, set
Public Overrides Property ItemHeight As Integer

屬性值

項目區域的高度,單位為像素。

屬性

備註

此度量是以字型高度加上小邊界為基礎,以提供專案周圍的空白字元。

當字型變更為 9.75 點 Arial 時,「g」 和 「y」 等字元的延伸項不會正確顯示。 若要更正此問題,請從 CheckedListBox 衍生類別,並覆寫 ItemHeight 以傳回 base.ItemHeight+2

適用於