This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARMap Interface > IARMap.ToMapPoint Method (ArcObjects .NET 10.4 SDK) |
Converts a point in device coordinates (typically pixels) to coordinates in map units.
[Visual Basic .NET] Public Sub ToMapPoint ( _ ByVal x As Integer, _ ByVal y As Integer, _ ByRef xCoord As Double, _ ByRef yCoord As Double _ )
[C#] public void ToMapPoint ( int x, int y, ref double xCoord, ref double yCoord );
Converts the x and y screen coordinates supplied in pixels to x and y map coordinates. The screen coordinates are relative to the top left of the ARMap display area. To obtain the offset of the display area from the top left of the ArcReaderControl use the IARControl::ViewTop and IARControl::ViewLeft properties. The returned map coordinates will be in MapUnits.