ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Editing.Templates Namespace / EditingTemplate Class / ActivateLastSelectedToolAsync() Method
Example

In This Topic
    ActivateLastSelectedToolAsync() Method
    In This Topic
    Activates the Tool that is identified by LastSelectedToolID.
    Syntax
    public Task ActivateLastSelectedToolAsync()
    Public Function ActivateLastSelectedToolAsync() As Task
    Example
    Activate template and it's last selected tool
    // Get the first template - alternatively get a specific template
    var template = templates.First();
    
    // Activate the last selected/used tool for the template
    template.ActivateLastSelectedToolAsync();
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also