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

In This Topic
    OnToolActivateAsync Method (MapTool)
    In This Topic
    Occurs when the tool is activated.
    Syntax
    protected virtual Task OnToolActivateAsync( 
       bool hasMapViewChanged
    )
    Protected Overridable Function OnToolActivateAsync( _
       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 activation event.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also