ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapTrayButton Class / Is2DMap Property

In This Topic
    Is2DMap Property
    In This Topic
    Gets whether or not the associated MapView is a view of a 2D Map.
    Syntax
    protected bool Is2DMap {get;}
    Protected ReadOnly Property Is2DMap As Boolean

    Property Value

    True if the underlying Map is 2D, false otherwise.
    Remarks

    Only ever true if this TrayButton has been added to a MapView's Tray.

    This may initially be false, 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, Windows 8.1

    See Also