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

ITool.Deactivate Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IT > ITool Interface > ITool.Deactivate Method
ArcGIS Developer Help

ITool.Deactivate Method

Causes the tool to no longer be the active tool.

[Visual Basic .NET]
Public Function Deactivate ( _
) As Boolean
public bool Deactivate (
HRESULT Deactivate(

Product Availability

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


When implementing ITool to create a custom tool, add some logic to the Deactivate method to specify whether this tool can be deactivated. If ITool_Deactivate is set to False, the default, you cannot interact with any other tools because this tool cannot be interrupted by another tool.

See Also

ITool Interface