ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.Local
ToMapPoint Method
See Also 
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 (IMapServer).
mapDescription
The map description (IMapDescription) when working with a local ArcGIS connection.
imageDisplay
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 IServerContext, _
   ByVal mapServer As IMapServer, _
   ByVal mapDescription As IMapDescription, _
   ByVal imageDisplay As IImageDisplay, _
   ByVal x As Integer, _
   ByVal y As Integer _
) As IPoint
Visual Basic (Usage)Copy Code
Dim context As IServerContext
Dim mapServer As IMapServer
Dim mapDescription As IMapDescription
Dim imageDisplay As IImageDisplay
Dim x As Integer
Dim y As Integer
Dim value As IPoint
 
value = Converter.ToMapPoint(context, mapServer, mapDescription, imageDisplay, x, y)
C# 
public static IPoint ToMapPoint( 
   IServerContext context,
   IMapServer mapServer,
   IMapDescription mapDescription,
   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 (IMapServer).
mapDescription
The map description (IMapDescription) when working with a local ArcGIS connection.
imageDisplay
IImageDisplaywith properties of the map display.
x
The X Screen coordinate.
y
The Y Screen coordinate.

Return Value

The ArcGIS point (IPoint) with map coordinates.

See Also

© 2010 All Rights Reserved.