ArcGIS Pro 2.8 API Reference Guide
LookAt Method

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.
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 10, Windows 8.1

See Also

Reference

MapView Class
MapView Members