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


Represents a geometrical shape.

Object Model


Syntax

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

Example

An example of accessing the Envelope of a Geometry. 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.Geometry MyGeometry = MyPolygon as Geometry; 
ESRI.ArcGIS.E2API.Envelope MyEnvelope = MyGeometry.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 MyGeometry As ESRI.ArcGIS.E2API.Geometry = CType(MyPolygon, ESRI.ArcGIS.E2API.Geometry)
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.Polyline
      ESRI.ArcGIS.E2API.Polygon
      ESRI.ArcGIS.E2API.Point
      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