ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / LookAt Method
The point to center the view at.
The amount of time to navigate the view to the new camera position. If null it uses the transition time property set for the application.

In This Topic
    LookAt Method
    In This Topic
    Center the view at a given point. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Function LookAt( _
       ByVal mapPoint As MapPoint, _
       Optional ByVal duration As Nullable(Of TimeSpan) _
    ) As Boolean

    Parameters

    mapPoint
    The point to center the view at.
    duration
    The amount of time to navigate the view to the new camera position. If null it uses the transition time property set for the application.

    Return Value

    True if the navigation is completed, false if it was interrupted by another view navigation.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    In 2D this will center the view on the given point, it will not adjust the Scale or Heading of the view. In 3D this will maintain X, Y, and Z for the camera and adjust the Heading and Pitch so that the provided point is at the center of the view.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also