ESRI.ArcGIS.ADF.Web.UI.WebControls.Layout
ToMapEnvelope(LayoutImageDataFrameInfo,IMapDescription,Int32,Int32,Int32,Int32) Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > WebPageLayout Class > ToMapEnvelope Method : ToMapEnvelope(LayoutImageDataFrameInfo,IMapDescription,Int32,Int32,Int32,Int32) Method




map
LayoutImageDataFrameInfo of the map.
mapDesc
If mapDesc is null, it will be retrieved from the Map Server.
left
Screen coordinate of the envelope's left.
top
Screen coordinate of the envelope's top
right
Screen coordinate of the envelope's right
bottom
Screen coordinate of the envelope's bottom
Gets an envelope in map coordinates by passing in the envelope's screen coordinates.

Syntax

Visual Basic (Declaration) 
Public Overloads Function ToMapEnvelope( _
   ByVal map As LayoutImageDataFrameInfo, _
   ByVal mapDesc As IMapDescription, _
   ByVal left As Integer, _
   ByVal top As Integer, _
   ByVal right As Integer, _
   ByVal bottom As Integer _
) As IEnvelope
Visual Basic (Usage)Copy Code
Dim instance As WebPageLayout
Dim map As LayoutImageDataFrameInfo
Dim mapDesc As IMapDescription
Dim left As Integer
Dim top As Integer
Dim right As Integer
Dim bottom As Integer
Dim value As IEnvelope
 
value = instance.ToMapEnvelope(map, mapDesc, left, top, right, bottom)
C# 
public IEnvelope ToMapEnvelope( 
   LayoutImageDataFrameInfo map,
   IMapDescription mapDesc,
   int left,
   int top,
   int right,
   int bottom
)

Parameters

map
LayoutImageDataFrameInfo of the map.
mapDesc
If mapDesc is null, it will be retrieved from the Map Server.
left
Screen coordinate of the envelope's left.
top
Screen coordinate of the envelope's top
right
Screen coordinate of the envelope's right
bottom
Screen coordinate of the envelope's bottom

Return Value

Envelope in map coordinates.

See Also

© 2010 All Rights Reserved.