ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / LayoutView Class / ActiveMapFrame Property
Version

ActiveMapFrame Property
Gets the active map frame on a layout.
Syntax
public MapFrame ActiveMapFrame {get;}
Remarks
Returns null if there is no active map frame. If there are multiple map frames in a layout, the active map frame is the one that is bolded in the contents pane.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also