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

Is2DMap Property
Gets whether or not the associated MapView is a view of a 2D Map.
Syntax
protected bool Is2DMap {get;}

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

ArcGIS Pro version: 3 or higher.
See Also