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

In This Topic
    ActiveMapFrame Property
    In This Topic
    Gets the active map frame on a layout.
    Syntax
    Public ReadOnly Property ActiveMapFrame As MapFrame
    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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also