System.Windows.Forms.ComboBox.ItemHeight Property

Gets or sets the height of an item in the combo box.

Syntax

[System.ComponentModel.Localizable(true)]
public int ItemHeight { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the ComboBox.DrawMode property is set to OwnerDrawFixed, all items have the same height. When the System.Windows.Forms.DrawMode property is set to OwnerDrawVariable, the ComboBox.ItemHeight property specifies the height of each item added to the System.Windows.Forms.ComboBox. Because each item in an owner-drawn list can have a different height, you can use the ComboBox.GetItemHeight(int) method to get the height of a specific item in the System.Windows.Forms.ComboBox. If you use the ComboBox.ItemHeight property on a System.Windows.Forms.ComboBox with items of variable height, this property returns the height of the first item in the control.

For more information about specifying the height for items in an owner-drawn list, see ComboBox.MeasureItem event.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0