Skip to main content

TcxCustomComboBoxProperties.ItemHeight Property

Specifies the height of an item in the combo box editor.

Declaration

property ItemHeight: Integer read; write; default 0;

Property Value

Type Default
Integer 0

Remarks

Use the ItemHeight property to specify the height of items in the combo box editor in pixels. The default value is 0 and this indicates that the height of items is calculated automatically based on the font settings of the editor.

You can change this value as your needs dictate. For instance, this can be useful when you want to perform custom draw of items via the OnDrawItem event.

To specify the width of items, see the DropDownWidth property. Note that DropDownWidth is in effect only if the DropDownAutoWidth property is set to False.

It is possible to specify different heights for individual items in the combo box editor. See the OnMeasureItem event.

The ItemHeight property is published in the TcxComboBoxProperties and TcxMRUEditProperties classes.

The default value of the ItemHeight property is 0.

See Also