ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.Local
ToMapEnvelope Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.Local Namespace > Converter Class : ToMapEnvelope 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
IImageDisplay with properties of the map display.
left
Minimum X in screen coordinates.
top
Minimum Y in screen coordinates.
right
Maximum X in screen coordinates.
bottom
Maximum Y in screen coordinates.
Returns an ArcGIS envelope (IEnvelope) for a set of screen coordinates.

Syntax

Visual Basic (Declaration) 
Public Shared Function ToMapEnvelope( _
   ByVal context As IServerContext, _
   ByVal mapServer As IMapServer, _
   ByVal mapDescription As IMapDescription, _
   ByVal imageDisplay As IImageDisplay, _
   ByVal left As Integer, _
   ByVal top As Integer, _
   ByVal right As Integer, _
   ByVal bottom As Integer _
) As IEnvelope
Visual Basic (Usage)Copy Code
Dim context As IServerContext
Dim mapServer As IMapServer
Dim mapDescription As IMapDescription
Dim imageDisplay As IImageDisplay
Dim left As Integer
Dim top As Integer
Dim right As Integer
Dim bottom As Integer
Dim value As IEnvelope
 
value = Converter.ToMapEnvelope(context, mapServer, mapDescription, imageDisplay, left, top, right, bottom)
C# 
public static IEnvelope ToMapEnvelope( 
   IServerContext context,
   IMapServer mapServer,
   IMapDescription mapDescription,
   IImageDisplay imageDisplay,
   int left,
   int top,
   int right,
   int bottom
)

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
IImageDisplay with properties of the map display.
left
Minimum X in screen coordinates.
top
Minimum Y in screen coordinates.
right
Maximum X in screen coordinates.
bottom
Maximum Y in screen coordinates.

Return Value

An ArcGIS envelope (IEnvelope).

See Also

© 2010 All Rights Reserved.