ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping.Controls Namespace / MapControl Class / OnCreateAutomationPeer Method

In This Topic
    OnCreateAutomationPeer Method
    In This Topic
    Creates and returns an System.Windows.Automation.Peers.AutomationPeer for this ArcGIS.Desktop.Mapping.Controls.MapControl.
    Syntax
    protected override AutomationPeer OnCreateAutomationPeer()
    Protected Overrides NotOverridable Function OnCreateAutomationPeer() As AutomationPeer

    Return Value

    A new System.Windows.Automation.Peers.UserControlAutomationPeer for this ArcGIS.Desktop.Mapping.Controls.MapControl.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also