ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / SetCursorPosition Method / SetCursorPosition(MapPoint) Method
The target map point

In This Topic
    SetCursorPosition(MapPoint) Method
    In This Topic
    Set the cursor position to the specified map point. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Overloads Sub SetCursorPosition( _
       ByVal mapPoint As MapPoint _
    ) 
    public void SetCursorPosition( 
       MapPoint mapPoint
    )

    Parameters

    mapPoint
    The target map point
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    The viewer is not initialized or is busy.
    Requirements

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

    ArcGIS Pro version: 3.3 or higher.
    See Also