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


IARMap.ToMapPoint Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (PublisherControls)  

IARMap.ToMapPoint Method

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
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

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.

See Also

IARMap Interface