ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / MapToClient Method
The point that represents coordinates in a map.

In This Topic
    MapToClient Method (MapView)
    In This Topic
    Converts a point in the coordinates of the map or scene to a point in client coordinates relative to the top-left corner of the view. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public Point MapToClient( 
       MapPoint mapPoint
    )
    Public Function MapToClient( _
       ByVal mapPoint As MapPoint _
    ) As Point

    Parameters

    mapPoint
    The point that represents coordinates in a map.

    Return Value

    The converted point in client coordinates relative to the top-left corner of the view.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also