This document is archived and information here might be outdated.  Recommended version.


IDisplayTransformation.ToMapPoint Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Display)  

IDisplayTransformation.ToMapPoint Method

Calculates a point in map coordinates corresponding to the device point.

[Visual Basic .NET]
Public Function ToMapPoint ( _
    ByVal x As Integer, _
    ByVal y As Integer _
) As IPoint
[C#]
public IPoint ToMapPoint (
    int x,
    int y
);
[C++]
HRESULT ToMapPoint(
  long x,
  long y,
  IPoint** mapPoint
);
[C++]

Parameters x [in] x is a parameter of type long y [in] y is a parameter of type long mapPoint [out, retval]
mapPoint is a parameter of type IPoint

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

ToMapPoint converts an (X,Y) location in device coordinates to real world coordinates (either map units or page units if working with ArcMap's PageLayout ).

See Also

IDisplayTransformation Interface

.NET Snippets

Draw Point | Get Map Coordinates from Screen Coordinates

.NET Related Topics

How to get map coordinates from screen coordinates | Working with PageLayout elements