ArcGIS Pro 2.7 API Reference Guide
OnCreateAutomationPeer Method

ArcGIS.Desktop.Mapping.Controls Namespace > MapControl Class : OnCreateAutomationPeer Method
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 10, Windows 8.1

See Also

Reference

MapControl Class
MapControl Members