C# Class MapControlSaveLayerFile.ContextMenuClass

Afficher le fichier Open project: Esri/arcobjects-sdk-community-samples Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public ContextMenuClass ( ) : System
Résultat System

PopupMenu() public méthode

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
Résultat void

SetHook() public méthode

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
Résultat void