ArcGIS Pro 2.6 API Reference Guide
SetViewingMode Method

ArcGIS.Desktop.Mapping Namespace > MapView Class : SetViewingMode Method
Set the perspective of the map view. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetViewingMode( 
   MapViewingMode viewingMode
)
Public Sub SetViewingMode( _
   ByVal viewingMode As MapViewingMode _
) 

Parameters

viewingMode
Exceptions
ExceptionDescription
Map can only be set for 2D views and SceneLocal and SceneGlobal can only be set for 3D views.
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
A map view can be used to show maps which display 2D data or scenes which display 3D data. This method can be used to switch between Local and Global for 3D.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

MapView Class
MapView Members