This document is archived and information here might be outdated. Recommended version. |
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*
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