Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomComboBoxProperties.ItemHeight Property

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

#Declaration

Delphi
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