This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > ID > IDisplayTransformation Interface > IDisplayTransformation.ToMapPoint Method (ArcObjects .NET 10.4 SDK) |
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
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 ).