ArcGIS Pro 2.6 API Reference Guide
ActiveMapFrame Property

ArcGIS.Desktop.Layouts Namespace > LayoutView Class : ActiveMapFrame Property
Gets the active map frame on a layout.
Syntax
public MapFrame ActiveMapFrame {get;}
Public ReadOnly Property ActiveMapFrame As MapFrame
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 10, Windows 8.1, Windows 7

See Also

Reference

LayoutView Class
LayoutView Members