ESRI.ArcGIS.E2API Feedback via the User Forum
Envelope Class
See Also  Members   Example 
ESRI.ArcGIS.E2API Namespace : Envelope Class


Represents a rectangle, with sides parallel to the coordinate system.

Object Model




Syntax

Visual Basic (Declaration) 
<ComVisibleAttribute(False)>
Public NotInheritable Class Envelope 
   Inherits Geometry
Visual Basic (Usage)Copy Code
Dim instance As Envelope
C# 
[ComVisibleAttribute(false)]
public sealed class Envelope : Geometry 

Example

An example of accessing the envelope of a Polygon. This example assumes there is a member variable _taskUI pointing to the current TaskUI.
C#Copy Code
ESRI.ArcGIS.E2API.Polygon MyPolygon = _taskUI.E2.CurrentView.TrackPolygon(); 
ESRI.ArcGIS.E2API.Envelope MyEnvelope = MyPolygon.Envelope; 
string PolygonCenter = MyEnvelope.Center.Y.ToString + ", " + MyEnvelope.Center.X.ToString;
Visual BasicCopy Code
Dim MyPolygon As ESRI.ArcGIS.E2API.Polygon= _taskUI.E2.CurrentView.TrackPolygon()
Dim MyEnvelope As ESRI.ArcGIS.E2API.Envelope = MyPolygon.Envelope
Dim PolygonCenter As String = MyEnvelope.Center.Y.ToString + ", " + MyEnvelope.Center.X.ToString

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.E2API.Geometry
      ESRI.ArcGIS.E2API.Envelope

Platforms

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Version Information

This class was added to the E2API at version 1.0.0.348.

See Also