This documentation is archived and is not being maintained.

CheckedListBox.ItemHeight Property

Gets the height of the item area.

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

public override int ItemHeight { get; set; }
/** @property */
public int get_ItemHeight ()

/** @property */
public void set_ItemHeight (int value)

public override function get ItemHeight () : int

public override function set ItemHeight (value : int)

Not applicable.

Property Value

The height, in pixels, of the item area.

This measurement is based on the font height plus a small margin to provide white space around the item.

The extenders of characters such as "g" and "y" do not display properly when the font is changed to 9.75-point Arial. To correct this, derive a class from CheckedListBox and override ItemHeight to return base.ItemHeight+2.

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: