

| Type | Description | |||
| Appearance as AppearanceEnum | An Appearance expression that indicates the menu's appearance. The Appearance could be Normal, or Flat/Button. So, the valid values are 0 to hold the height for the item while the menu's appearance is Normal, and the 1 to hold the height of the item while the menu's appearance is Flat or Button. | |||
| Long | A long expression that indicates the height of the item, in pixels. |
The following VB sample changes the item's height for current appearance:
With ExMenu1
.ItemHeight(.Appearance) = 18
.Refresh
End With
The following C++ sample changes the item's height for current appearance:
m_menu.SetItemHeight( m_menu.GetAppearance(), 18 ); m_menu.Refresh();
The following VB.NET sample changes the item's height for current appearance:
With AxExMenu1
.set_ItemHeight(.Appearance, 18)
.CtlRefresh()
End With
The following C# sample changes the item's height for current appearance:
axExMenu1.set_ItemHeight(axExMenu1.Appearance, 18); axExMenu1.CtlRefresh();
The following VFP sample changes the item's height for current appearance:
With thisform.ExMenu1 .ItemHeight(.Appearance) = 18 .Object.Refresh() EndWith