ArcGIS Pro 2.8 API Reference Guide
PageToMap(Coordinate2D) Method

ArcGIS.Desktop.Layouts Namespace > MapFrame Class > PageToMap Method : PageToMap(Coordinate2D) Method
The point in page coordinates
Translates a point in page coordinates to a point in map coordinates. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public Coordinate2D PageToMap( 
   Coordinate2D pageCoord
)
Public Overloads Function PageToMap( _
   ByVal pageCoord As Coordinate2D _
) As Coordinate2D

Parameters

pageCoord
The point in page coordinates

Return Value

A point in map coordinates
Exceptions
ExceptionDescription
Mapframe must contain a 2D map
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
The map coordinates will be in the spatial reference of the map associated with the map frame. Page coordinates can only be translated for 2D maps. If the map frame does not contain a 2D map, an System.InvalidOperationException is thrown. If either page coordinate value is double.NaN then a point with X, Y both set to System.Double.NaN is returned.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MapFrame Class
MapFrame Members
Overload List