This documentation is archived and is not being maintained.

ComboBox.IntegralHeight Property

Gets or sets a value indicating whether the control should resize to avoid showing partial items.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

[LocalizableAttribute(true)] 
public bool IntegralHeight { get; set; }
/** @property */
public boolean get_IntegralHeight ()

/** @property */
public void set_IntegralHeight (boolean value)

public function get IntegralHeight () : boolean

public function set IntegralHeight (value : boolean)

Not applicable.

Property Value

true if the list portion can contain only complete items; otherwise, false. The default is true.

When this property is set to true, the control automatically resizes to ensure that an item is not partially displayed. If you want to maintain the original size of the ComboBox based on the space requirements of your form, set this property to false. If the ComboBox does not contain any items, this property has no effect.

Setting the DropDownHeight property resets the IntegralHeight property to false.

NoteNote:

If the DrawMode property is set to OwnerDrawVariable, this property has no effect.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Show: