OnCommandExecuted

This event occurs when a TerraExplorer ribbon command is executed, and can be used to discover the ICommand.Execute API for each ribbon command.

JavaScript

 

OnCommandExecuted(

       CommandID,

       parameters)

 

C#

 

bool OnCommandExecuted(

       int CommandID,

       object parameters)

 

C++

 

HRESULT OnCommandExecuted(

       [in] long CommandID,

       [in] VARIANT parameters

       [out, retval] VARIANT_BOOL* pbHandled);)

Parameters

CommandID

The ID of the menu command being executed. See the list of menu commands organized according to TerraExplorer Ribbon tabs.

parameters

The command’s parameters. See the command parameters in the list of menu commands.

Return Value

pbHandled

A Boolean that indicates whether or not the client handled the command and does not wish TerraExplorer to respond to the command execution.