An object that has the properties of a rectangle and can be associated with a map, layout, or a feature.
Object Model
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As Envelope |
Example
The following example creates a new envelope and set the map extent to the envelope. The code assumes an existing MapView object.
For an example of examining the envelope in a result of a query operation, see FeatureLayer.GetFeatureCount(Filter, SelectionBuffer, out Envelope).
C# | Copy Code |
---|
ESRI.ArcGIS.ADF.IMS.Geometry.Envelope mapEnvelope =
new ESRI.ArcGIS.ADF.IMS.Geometry.Envelope();
mapEnvelope.XMin = 20.0;
mapEnvelope.YMin = -33.0;
mapEnvelope.XMax = 30.0;
mapEnvelope.YMax = -23.0;
mapView.Extent = mapEnvelope; |
Visual Basic | Copy Code |
---|
Dim mapEnvelope As New ESRI.ArcGIS.ADF.IMS.Geometry.Envelope()
mapEnvelope.XMin = 20.0
mapEnvelope.YMin = -33.0
mapEnvelope.XMax = 30.0
mapEnvelope.YMax = -23.0
mapView.Extent = mapEnvelope |
Remarks
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also