This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IM > IMapControl2 Interface > IMapControl2.ToMapPoint Method (ArcObjects .NET 10.4 SDK) |
Converts a point in device co-ordinates (typically pixels) to a point on the Map (in map units).
[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** point
);
[C++]
Parameters X [in] X is a parameter of type long Y [in] Y is a parameter of type long point [out, retval]
point is a parameter of type IPoint
ToMapPoint converts a (X,Y) location in pixels to MapUnits.
1000 800a03e8: An internal call to create an object has failed
IMapControl2 Interface | IMapControl2.FromMapPoint Method | IMapControl4.FromMapPoint Method | IMapControl3.FromMapPoint Method