CheckedListBox.ItemHeight 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得項目區域的高度。
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
。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應