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


IMenuDef.GetItemInfo Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (SystemUI)  

IMenuDef.GetItemInfo Method

The CLSID for the item on this menu at the specified index.

[Visual Basic .NET]
Public Sub GetItemInfo ( _
    ByVal pos As Integer, _
    ByVal itemDef As IItemDef _
)
[C#]
public void GetItemInfo (
    int pos,
    IItemDef itemDef
);
[C++]
HRESULT GetItemInfo(
  long pos,
  IItemDef* itemDef
);
[C++]

Parameters pos [in]
pos is a parameter of type long itemDef [in]
itemDef is a parameter of type IItemDef*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description


pos represents the locational index number of this item on the menu.

itemDef is an IItemDef object that defines the item at this position of the menu.

Remarks

When implementing IMenuDef to create a custom menu, use the GetItemInfo method to define what items are on this menu.  

To find the CLSID, ProgID, and subtype of a built-in command or menu in ArcMap or ArcCatalog, refer to the following technical documents:

ArcObjects Developer Help > Technical Documents > ArcMap: Names and IDs of commands and commandbars

ArcObjects Developer Help > Technical Documents > ArcCatalog: Names and IDs of commands and commandbars

See Also

IMenuDef Interface | IItemDef Interface