This document is archived and information here might be outdated.  Recommended version.


ICommand.OnClick Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IC > ICommand Interface > ICommand.OnClick Method
ArcGIS Developer Help

ICommand.OnClick Method

Occurs when this command is clicked.

[Visual Basic .NET]
Public Sub OnClick ( _
)
[C#]
public void OnClick (
);
[C++]
HRESULT OnClick(
void
);

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

When implementing ICommand to create a custom command, write the code that performs the action when the command is clicked in the OnClick method.

See Also

ICommand Interface