[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'StdCtrls' (#lcl)

# TCustomComboBox.ItemHeight

The default height of an item in the drop-down for the control.

## Declaration

Source position: stdctrls.pp line 394

`protected property TCustomComboBox.ItemHeight : Integer read GetItemHeight write SetItemHeight;`

## Description

ItemHeight is an Integer property which contains the height (in pixels) used when drawing an item in the drop-down list.

The value for the property is retrieved from the widgetset class when not already assigned in the class instance, or when using an owner-drawn Style. Setting a new value for ItemHeight calls the SetItemHeight method in the widgetset class for owner-drawn Styles.

The property value is updated when the LM_MeasureItem message is handled for the control. When variable height items are enabled in Style, the OnMeasureItem event handler must be implemented to calculate the height for individual value in Items.

ItemHeight, ItemWidth, Items, and DropDownCount are used in the AdjustDropDown method to determine the dimensions for the drop-down list in the control.

## See also

TCustomComboBox.OnMeasureItem |  | Handler invoked when the height for an item is needed.
TCustomComboBox.Style |  | Controls the appearance and behavior for the combo-box.
TCustomComboBox.Items |  | The list of items displayed in the combo-box control.
TCustomComboBox.ItemWidth |  | The minimum width of the items in the drop-down list.
TCustomComboBox.DropDownCount |  | The maximum number of Items visible in the drop-down list for the control.
TCustomComboBox.AdjustDropDown |  | Adjusts the extent for the drop-down list.