ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapTrayButton Class / Map Property

In This Topic
    Map Property (MapTrayButton)
    In This Topic
    Gets the underlying Map of the associated MapView.
    Syntax
    protected Map Map {get;}
    Protected ReadOnly Property Map As Map

    Property Value

    The associated Map
    Remarks

    Only non-null if this TrayButton has been added to a MapView's Tray.

    This may initially be null, as the view is being constructed. Override the TrayButton.OnButtonLoaded method to be told when the view is made available.

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also