ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / ZoomToFullExtentAsync Method
The amount of time to navigate the view to the new camera position. If null it uses the default navigation duration.
Example

In This Topic
    ZoomToFullExtentAsync Method
    In This Topic
    Zoom the view to the full extent of the map or scene.
    Syntax
    Public Function ZoomToFullExtentAsync( _
       Optional ByVal duration As Nullable(Of TimeSpan) _
    ) As Task(Of Boolean)
    public Task<bool> ZoomToFullExtentAsync( 
       Nullable<TimeSpan> duration
    )

    Parameters

    duration
    The amount of time to navigate the view to the new camera position. If null it uses the default navigation duration.

    Return Value

    True if the navigation is completed, false if it was interrupted by another view navigation.
    Example
    Zoom To Full Extent Async
    {
      //Zoom to the map's full extent
      mapView.ZoomToFullExtentAsync(TimeSpan.FromSeconds(2));
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also