ComboBox.GetItemHeight(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳 中項目 ComboBox的高度。
public:
int GetItemHeight(int index);
public int GetItemHeight(int index);
member this.GetItemHeight : int -> int
Public Function GetItemHeight (index As Integer) As Integer
參數
- index
- Int32
項目的索引,回傳 的高度。
傳回
項目在指定索引處的高度(以像素為單位)。
例外狀況
備註
若 DrawMode 未設為 OwnerDrawVariable, index 則參數值會被忽略,因為標準 ComboBox 中的所有項目大小相同。 當你使用擁有者抽取 ComboBox 圖來判斷 ComboBox。
欲了解更多關於指定擁有者繪製清單中項目高度的資訊,請參見 MeasureItem 事件。