From RAD Studio API Documentation
Jump to: navigation, search


property ItemHeight: Integer read GetItemHt write SetItemHeight stored IsItemHeightStored;


__property int ItemHeight = {read=GetItemHt, write=SetItemHeight, stored=IsItemHeightStored, nodefault};


Type Visibility Source Unit Parent
property protected
Vcl.StdCtrls TCustomCombo


Specifies the height, in pixels, of the items in the drop-down list.

Read ItemHeight to determine the height of the items in the drop-down list.

The effect of setting ItemHeight varies, depending on the type of combo box and the style. For example, TComboBox lets you set the item height only when Style is set to csOwnerDrawFixed or csOwnerDrawVariable. If Style is csOwnerDrawVariable, ItemHeight is the default height for drawing list items, but this value can be overridden by an OnMeasureItem event handler.

TComboBoxEx does not let you change the value of ItemHeight.

Note: Combo boxes that do not support changes to ItemHeight do not raise an exception when you attempt to change ItemHeight; they simply ignore the attempt.

See Also