AGI Ui Plugins 11 Send comments on this topic.
Exec Method (IAgUiPluginCommandTarget)
See Also  Example
CommandName
A named command
TrackCancel
Object that allows controlling the progress indicator of the hosting application.
Parameters
A collection of custom key/value pairs.





Description

Executes the specified named command.

Syntax

[Visual Basic .NET]
Public Sub Exec( _
   ByVal CommandName As String, _
   ByVal TrackCancel As ITrackCancelIAgProgressTrackCancel, _
   ByVal Parameters As IAgUiPluginCommandParameters _
) 

[C#]
public void Exec(
string CommandName,
ITrackCancelIAgProgressTrackCancel TrackCancel,
IAgUiPluginCommandParameters Parameters
);

[Managed C++]
public: void Exec(
String __gc ^ CommandName,
ITrackCancelIAgProgressTrackCancel ^ TrackCancel,
IAgUiPluginCommandParameters ^ Parameters
);

[Java]
public  exec(
String CommandName,
ITrackCancelIAgProgressTrackCancel TrackCancel,
IAgUiPluginCommandParameters Parameters
);

[Unmanaged C++]
public: HRESULT Exec(
BSTR CommandName,
ITrackCancelIAgProgressTrackCancel * TrackCancel,
IAgUiPluginCommandParameters * Parameters
);

Parameters

CommandName
A named command
TrackCancel
Object that allows controlling the progress indicator of the hosting application.
Parameters
A collection of custom key/value pairs.

Example

Execute a named command Copy Code
void IAgUiPluginCommandTarget.Exec(string CommandName, IAgProgressTrackCancel TrackCancel, IAgUiPluginCommandParameters Parameters) 

    //Controls what a command does 
    if (string.Compare(CommandName, "MyFirstCommand"true) == 0
    { 
    // Perform an action here. 
    } 


See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1