|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IMenuDef
Provides access to members that define a menu.
com.esri.arcgis.framework.IShortcutMenu,
com.esri.arcgis.framework.IRootLevelMenu| Method Summary | |
|---|---|
String |
getCaption()
The caption of this menu. |
int |
getItemCount()
The number of items in this menu. |
void |
getItemInfo(int pos,
IItemDef itemDef)
The CLSID for the item on this menu at the specified index. |
String |
getName()
The name of this menu. |
| Method Detail |
|---|
int getItemCount()
throws IOException,
AutomationException
When implementing IMenuDef to create a custom menu, use the ItemCount property to specify how many items will be on this menu.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void getItemInfo(int pos,
IItemDef itemDef)
throws IOException,
AutomationException
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
pos - The pos (in)itemDef - A reference to a com.esri.arcgis.systemUI.IItemDef (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.IItemDef
String getName()
throws IOException,
AutomationException
When implementing IMenuDef to create a custom menu, use the Name property to set the name of this menu.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getCaption()
throws IOException,
AutomationException
When implementing IMenuDef to create a custom menu, use the Caption property to set the caption of this menu.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||