ADF.Web.DataSources.ArcGISServer.Local
ToMapPoint Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.Local Namespace > Converter Class : ToMapPoint Method




context
The ArcGIS Server context (IServerContext), available when working with Local connections to ArcGIS Server.
mapServer
The ArcGIS map server (T:ESRI.ArcGIS.Carto.IMapServer).
mapDescription
The map description (T:ESRI.ArcGIS.Carto.IMapDescription) when working with a local ArcGIS connection.
imageDisplay
T:ESRI.ArcGIS.Carto.IImageDisplaywith properties of the map display.
x
The X Screen coordinate.
y
The Y Screen coordinate.
Converts a screen coordinate using x, y values to an ArcGIS point (IPoint) object.

Syntax

Visual Basic (Declaration) 
Public Shared Function ToMapPoint( _
   ByVal context As ESRI.ArcGIS.Server.IServerContext, _
   ByVal mapServer As ESRI.ArcGIS.Carto.IMapServer, _
   ByVal mapDescription As ESRI.ArcGIS.Carto.IMapDescription, _
   ByVal imageDisplay As ESRI.ArcGIS.Carto.IImageDisplay, _
   ByVal x As Integer, _
   ByVal y As Integer _
) As ESRI.ArcGIS.Geometry.IPoint
Visual Basic (Usage)Copy Code
Dim context As ESRI.ArcGIS.Server.IServerContext
Dim mapServer As ESRI.ArcGIS.Carto.IMapServer
Dim mapDescription As ESRI.ArcGIS.Carto.IMapDescription
Dim imageDisplay As ESRI.ArcGIS.Carto.IImageDisplay
Dim x As Integer
Dim y As Integer
Dim value As ESRI.ArcGIS.Geometry.IPoint
 
value = Converter.ToMapPoint(context, mapServer, mapDescription, imageDisplay, x, y)
C# 
public static ESRI.ArcGIS.Geometry.IPoint ToMapPoint( 
   ESRI.ArcGIS.Server.IServerContext context,
   ESRI.ArcGIS.Carto.IMapServer mapServer,
   ESRI.ArcGIS.Carto.IMapDescription mapDescription,
   ESRI.ArcGIS.Carto.IImageDisplay imageDisplay,
   int x,
   int y
)

Parameters

context
The ArcGIS Server context (IServerContext), available when working with Local connections to ArcGIS Server.
mapServer
The ArcGIS map server (T:ESRI.ArcGIS.Carto.IMapServer).
mapDescription
The map description (T:ESRI.ArcGIS.Carto.IMapDescription) when working with a local ArcGIS connection.
imageDisplay
T:ESRI.ArcGIS.Carto.IImageDisplaywith properties of the map display.
x
The X Screen coordinate.
y
The Y Screen coordinate.

Return Value

The ArcGIS point (T:ESRI.ArcGIS.Geometry.IPoint) with map coordinates.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.