ArcObjects Library Reference (Controls)  

IMapControl3.FromMapPoint Method

Converts a point on the Map (in map units) to device co-ordinates (typically pixels).

[Visual Basic .NET]
Public Sub FromMapPoint ( _
    ByVal pt As IPoint, _
    ByRef X As Integer, _
    ByRef Y As Integer _
)
[C#]
public void FromMapPoint (
    IPoint pt,
    ref int X,
    ref int Y
);
[C++]
HRESULT FromMapPoint(
  IPoint* pt,
  long* X,
  long* Y
);
[C++]

Parameters

pt [in]

  pt is a parameter of type IPoint

X [in, out]   X is a parameter of type long Y [in, out]   Y is a parameter of type long

Product Availability

Available with ArcGIS Engine.

Description

The FromMapPoint method takes an input point in MapUnits, and populates two variables with the equivalent control coordinates in pixels.

See Also

IMapControl3 Interface | IMapControl2.ToMapPoint Method | IMapControl3.ToMapPoint Method | IMapControl4.ToMapPoint Method