ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Framework.Events Namespace / ActiveToolChangedEvent Class
Members Example

In This Topic
    ActiveToolChangedEvent Class
    In This Topic
    Occurs when the active tool changes.
    Object Model
    ActiveToolChangedEvent ClassSubscriptionToken ClassSubscriptionToken Class
    Syntax
    Public NotInheritable Class ActiveToolChangedEvent 
       Inherits ArcGIS.Core.Events.CompositePresentationEvent(Of ToolEventArgs)
    public sealed class ActiveToolChangedEvent : ArcGIS.Core.Events.CompositePresentationEvent<ToolEventArgs> 
    Example
    Subscribe to Active Tool Changed Event
    {
      ArcGIS.Desktop.Framework.Events.ActiveToolChangedEvent.Subscribe((args) =>
        {
          string prevTool = args.PreviousID;
          string newTool = args.CurrentID;
        });
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.Events.EventBase
          ArcGIS.Core.Events.CompositePresentationEvent<TPayload>
             ArcGIS.Desktop.Framework.Events.ActiveToolChangedEvent

    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also