ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / SetViewingMode Method

In This Topic
    SetViewingMode Method
    In This Topic
    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 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also