ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapTool Class / OnToolDeactivateAsync Method
A value indicating if the active MapView has changed.

In This Topic
    OnToolDeactivateAsync Method (MapTool)
    In This Topic
    Occurs when the tool is deactivated.
    Syntax
    protected virtual Task OnToolDeactivateAsync( 
       bool hasMapViewChanged
    )
    Protected Overridable Function OnToolDeactivateAsync( _
       ByVal hasMapViewChanged As Boolean _
    ) As Task

    Parameters

    hasMapViewChanged
    A value indicating if the active MapView has changed.

    Return Value

    A Task that represents a tool deactivation event.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also