Static method that constructs an envelope that surrounds the extents of the input
envelopes.
Syntax
Parameters
- env1
- env2
Return Value
Envelope that surrounds the two input envelopes.
Example
The following example unions the current map extent with a newly created envelope,
and sets the map extent to the new envelope. The code assumes an existing MapView
object.
C# | Copy Code |
---|
ESRI.ArcGIS.ADF.IMS.Geometry.Envelope mapEnvelope = mapView.Extent; ESRI.ArcGIS.ADF.IMS.Geometry.Envelope envelope2 = new ESRI.ArcGIS.ADF.IMS.Geometry.Envelope(23, -26, 27, -18); ESRI.ArcGIS.ADF.IMS.Geometry.Envelope unionEnvelope = ESRI.ArcGIS.ADF.IMS.Geometry.Envelope.Union(mapEnvelope, envelope2); mapView.Extent = unionEnvelope; |
Visual Basic | Copy Code |
---|
Dim mapEnvelope As ESRI.ArcGIS.ADF.IMS.Geometry.Envelope _
= mapView.Extent
Dim envelope2 As New _
ESRI.ArcGIS.ADF.IMS.Geometry.Envelope(23, -26, 27, -18)
Dim unionEnvelope As ESRI.ArcGIS.ADF.IMS.Geometry.Envelope _
= ESRI.ArcGIS.ADF.IMS.Geometry.Envelope.Union(mapEnvelope, envelope2)
mapView.Extent = unionEnvelope
|
Remarks
See Also