ArcGIS Pro 2.7 API Reference Guide
AddOverlayControl Method

ArcGIS.Desktop.Mapping Namespace > MapView Class : AddOverlayControl Method
A class containing the control to add. MapViewOverlayControl can be used or create another class that implements IMapViewOverlayControl.
Add a control over the view.
Syntax
public void AddOverlayControl( 
   IMapViewOverlayControl overlayControl
)
Public Sub AddOverlayControl( _
   ByVal overlayControl As IMapViewOverlayControl _
) 

Parameters

overlayControl
A class containing the control to add. MapViewOverlayControl can be used or create another class that implements IMapViewOverlayControl.
Remarks
The control should be held in a member variable if access is required later, or to send to RemoveOverlayControl when no longer needed.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MapView Class
MapView Members