This document is archived and information here might be outdated.  Recommended version.

IToolbarItem.Menu Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > IToolbarItem Interface > IToolbarItem.Menu Property
ArcGIS Developer Help

IToolbarItem.Menu Property

If the item is a menu, this property is a ToolbarMenu object.

[Visual Basic .NET]
Public ReadOnly Property Menu As IToolbarMenu
public IToolbarMenu Menu {get;}
HRESULT get_Menu(
  IToolbarMenu** ppToolbarMenu
ppToolbarMenu [out, retval]

ppToolbarMenu is a parameter of type IToolbarMenu**

Product Availability

Available with ArcGIS Engine.


Returns the IToolbarMenu used by the item if the item represents a menu. If the item does not use a menu Nothing is returned.

See Also

IToolbarItem Interface

.NET Samples

ArcGIS Network Analyst extension Engine application Creating toolbar menus that work with the ToolbarControl