C# Class MapControlSaveLayerFile.ContextMenuClass

Show file Open project: Esri/arcobjects-sdk-community-samples Class Usage Examples

Public Methods

Method Description
ContextMenuClass ( ) : System
PopupMenu ( int X, int Y, int hWndParent ) : void

Popup the context menu at the given location

SetHook ( object hook ) : void

Instantiate the underlying ToolbarMenu and set the hook object to be passed into the OnCreate event of each command item.

Private Methods

Method Description
AddItem ( System.Guid itemGuid, int subtype ) : void

Add a command item to the command bar by the Guid and a subtype index.

AddItem ( Type itemType, int subtype ) : void

Add a command item to the command bar by a type and a subtype index.

AddItem ( UID itemUID ) : void

Add a command item to the command bar by an Unique Identifier Object (UID).

AddItem ( string itemID, int subtype ) : void

Add a command item to the command bar by an identifier string and a subtype index

BeginGroup ( ) : void

Adds a separator bar on the command bar to begin a group.

Method Details

ContextMenuClass() public method

public ContextMenuClass ( ) : System
return System

PopupMenu() public method

Popup the context menu at the given location
public PopupMenu ( int X, int Y, int hWndParent ) : void
X int X coordinate where to popup the menu
Y int Y coordinate where to popup the menu
hWndParent int Handle to the parent window
return void

SetHook() public method

Instantiate the underlying ToolbarMenu and set the hook object to be passed into the OnCreate event of each command item.
public SetHook ( object hook ) : void
hook object
return void