ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / HasNextCamera Method
Example

In This Topic
    HasNextCamera Method
    In This Topic
    Indicates whether the map view has a next camera position.
    Syntax
    Public Function HasNextCamera() As Boolean
    public bool HasNextCamera()

    Return Value

    Returns true if the map view has a next camera position.
    Remarks
    The map view will have a next camera position if the camera has changed and if the camera stack has been moved backwards.
    Example
    Go To Next Camera
    {
      //Zoom to the selected layers in the TOC
      if (mapView.HasNextCamera())
        mapView.NextCameraAsync();
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also