CheckedListBox::ItemHeight Property

 

Gets the height of the item area.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
[BrowsableAttribute(false)]
property int ItemHeight {
	virtual int get() override;
	virtual void set(int value) override;
}

Property Value

Type: System::Int32

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.

.NET Framework
Available since 1.1
Return to top
Show: