ESRI.ArcGIS.ADF.Web.UI.WebControls.Layout
FromMapEnvelope Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > WebPageLayout Class : FromMapEnvelope Method




map
LayoutImageDataFrameInfo of the map.
mapDesc
If mapDesc is null, it will be retrieved from the Map Server.
envelope
Envelope in map coordinates.
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's screen coordinates by passing in an envelope in map coordinates.

Syntax

Visual Basic (Declaration) 
Public Sub FromMapEnvelope( _
   ByVal map As LayoutImageDataFrameInfo, _
   ByVal mapDesc As IMapDescription, _
   ByVal envelope As IEnvelope, _
   ByRef left As Integer, _
   ByRef top As Integer, _
   ByRef right As Integer, _
   ByRef bottom As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As WebPageLayout
Dim map As LayoutImageDataFrameInfo
Dim mapDesc As IMapDescription
Dim envelope As IEnvelope
Dim left As Integer
Dim top As Integer
Dim right As Integer
Dim bottom As Integer
 
instance.FromMapEnvelope(map, mapDesc, envelope, left, top, right, bottom)
C# 
public void FromMapEnvelope( 
   LayoutImageDataFrameInfo map,
   IMapDescription mapDesc,
   IEnvelope envelope,
   out int left,
   out int top,
   out int right,
   out int bottom
)

Parameters

map
LayoutImageDataFrameInfo of the map.
mapDesc
If mapDesc is null, it will be retrieved from the Map Server.
envelope
Envelope in map coordinates.
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

See Also

© 2010 All Rights Reserved.