ISComboBox.ItemHeight

Description

The height, in pixels, of the items in the drop-down list of the specified combo box. The property is not accessible in the Object Inspector.

Syntax

object.ItemHeight

Part Attribute Type Description
object Required
The object always implements the ISComboBox interface

Return Value

int

Example

Display some information about the specified combo box, including the height of its items in the drop-down list.

Dim aComboBox
Dim aComboBoxInfo

Set aComboBox = Form.Controls_("cmbInform")
  
aComboBoxInfo =_
  "Caption: " & aComboBox.Caption & vbNewLine &_ 
  "ShortName: " & aComboBox.ShortName & vbNewLine &_
  "ComboBox Items Count = " & aComboBox.Items.Count & vbNewLine &_ 
  "ComboBox Item Height = " & aComboBox.ItemHeight
 
Profile.MsgBox(aComboBoxInfo) 
Note: This property has an effect when the style of the combo box is csOwnerDrawVariable. This macro should be executed in any event handler of the form control.

Version information

Added in v7.8.0