property ExMenu.ItemHeight(Appearance as AppearanceEnum) as Long
Retrieves or sets the item's height.

 TypeDescription 
   Appearance as AppearanceEnum An Appearance expression that indicates the menu's appearance.  
   Long A long expression that indicates the height of the item, in pixels.  
The ItemHeight property specifies the height for the items in the menu. Use the Appearance property to specify the control's appearance. Use the Font property to specify the control's font. Use the Refresh method to refresh the control's content.  

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

 


Send comments on this topic.
© 1999-2007 Exontrol Inc, Software. All rights reserved.