ArcGIS Pro 2.9 API Reference Guide
GetOverlayControls Method

ArcGIS.Desktop.Mapping Namespace > MapView Class : GetOverlayControls Method
Get all the current overlay controls.
Syntax
public IReadOnlyCollection<UIElement> GetOverlayControls()
Public Function GetOverlayControls() As IReadOnlyCollection(Of UIElement)

Return Value

The collection of controls on the overlay window.
Remarks
This method is not meant to retrieve a specific control. It should be used to find the position of all existing controls to help with placement when calling AddOverlayControl.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

MapView Class
MapView Members