ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Core Namespace / FrameworkExtender Class / CreateMapPaneAsync Method / CreateMapPaneAsync(PaneCollection,Map,Camera,Nullable<MapViewingMode>,TimeRange) Method
The project's collection of panes returned from ArcGIS.Desktop.Framework.FrameworkApplication.Panes.
The map to display in the resulting view.
Sets the camera position for the view.
Specifies the perspective of the view.
Sets the time extent for the view.

In This Topic
    CreateMapPaneAsync(PaneCollection,Map,Camera,Nullable<MapViewingMode>,TimeRange) Method
    In This Topic
    Create and activate a new map pane which is a container for a ArcGIS.Desktop.Mapping.MapView.
    Syntax
    Public Overloads Shared Function CreateMapPaneAsync( _
       ByVal paneCollection As PaneCollection, _
       ByVal map As Map, _
       ByVal camera As Camera, _
       Optional ByVal viewingMode As Nullable(Of MapViewingMode), _
       Optional ByVal timeExtent As TimeRange _
    ) As Task(Of IMapPane)

    Parameters

    paneCollection
    The project's collection of panes returned from ArcGIS.Desktop.Framework.FrameworkApplication.Panes.
    map
    The map to display in the resulting view.
    camera
    Sets the camera position for the view.
    viewingMode
    Specifies the perspective of the view.
    timeExtent
    Sets the time extent for the view.

    Return Value

    A Task returning a map pane.
    Exceptions
    ExceptionDescription
    Map can only be set for 2D views and SceneLocal and SceneGlobal can only be set for 3D views.
    Remarks
    When a new map pane is created the ArcGIS.Desktop.Mapping.MapView needs to initialize before any operations are performed on it. Be sure to await the Task to ensure the view has finished its initialization before performing any operations on the resulting ArcGIS.Desktop.Mapping.MapView.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also