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

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, Windows 8.1

ArcGIS Pro version: 2.2 or higher.
See Also