ToolStripComboBox.IntegralHeight 屬性

定義

取得或設定值,指出 ToolStripComboBox 是否應該重新調整大小以避免僅顯示部分項目。Gets or sets a value indicating whether the ToolStripComboBox should resize to avoid showing partial items.

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

屬性值

如果清單部分只能包含完整項目,則為 true,否則為 falsetrue if the list portion can contain only complete items; otherwise, false. 預設值為 trueThe default is true.

備註

當這個屬性設定為 [true] 時,控制項會自動調整大小,以確保專案不會部分顯示。When this property is set to true, the control automatically resizes to ensure that an item is not partially displayed. 如果您想要根據表單的空間需求來維護 ToolStripComboBox 的原始大小,請將此屬性設定為 [false]。If you want to maintain the original size of the ToolStripComboBox based on the space requirements of your form, set this property to false. 如果 ToolStripComboBox 不包含任何專案,這個屬性就不會有任何作用。If the ToolStripComboBox does not contain any items, this property has no effect.

設定 DropDownHeight 屬性會將 IntegralHeight 屬性重設為 falseSetting the DropDownHeight property resets the IntegralHeight property to false.

適用於