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


IToolbarItem.Menu Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Controls)  

IToolbarItem.Menu Property

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

[Visual Basic .NET]
Public ReadOnly Property Menu As IToolbarMenu
[C#]
public IToolbarMenu Menu {get;}
[C++]
HRESULT get_Menu(
  IToolbarMenu** ppToolbarMenu
);
[C++]

Parameters ppToolbarMenu [out, retval]
ppToolbarMenu is a parameter of type IToolbarMenu

Product Availability

Available with ArcGIS Engine.

Description

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

Creating toolbar menus that work with the ToolbarControl (Code Files: ToolbarMenu) | ArcGIS Network Analyst extension Engine application (Code Files: frmMain)