Share via


ComboBox.IntegralHeight 屬性

定義

取得或設定值,指出控制項是否應該重新調整大小以避免僅顯示部分項目。

public:
 property bool IntegralHeight { bool get(); void set(bool value); };
public bool IntegralHeight { get; set; }
member this.IntegralHeight : bool with get, set
Public Property IntegralHeight As Boolean

屬性值

Boolean

如果清單部分只能包含完整項目,則為 true,否則為 false。 預設為 true

備註

當此屬性設定為 true 時,控制項會自動調整大小,以確保未部分顯示專案。 如果您想要根據表單的空間需求維護 的原始大小 ComboBox ,請將此屬性設定為 falseComboBox如果 不包含任何專案,則此屬性沒有任何作用。

DropDownHeight將 屬性設定為 IntegralHeight false

注意

如果 屬性 DrawMode 設定為 OwnerDrawVariable ,這個屬性就不會有任何作用。

適用於