ArcObjects Library Reference (Geometry)  

IGeometry.GeometryType Property

The type of this geometry.

[Visual Basic .NET]
Public ReadOnly Property GeometryType As esriGeometryType
[C#]
public esriGeometryType GeometryType {get;}
[C++]
HRESULT get_GeometryType(
  esriGeometryType* shapeType
);
[C++]

Parameters

shapeType [out, retval]

  shapeType is a parameter of type esriGeometryType

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

esriGeometryNull          = 0
esriGeometryPoint = 1
esriGeometryMultipoint = 2
esriGeometryPolyline = 3
esriGeometryPolygon = 4
esriGeometryEnvelope = 5
esriGeometryPath = 6
esriGeometryAny = 7
esriGeometryMultiPatch = 9
esriGeometryRing = 11
esriGeometryLine = 13
esriGeometryCircularArc = 14
esriGeometryBezier3Curve = 15
esriGeometryEllipticArc = 16
esriGeometryBag = 17
esriGeometryTriangleStrip = 18
esriGeometryTriangleFan = 19
esriGeometryRay = 20
esriGeometrySphere = 21
Geometry Type Example

See Also

IGeometry Interface

.NET Snippets

Add Graphic to Map | Flash Geometry

.NET Samples

3D multipatch examples (Code Files: GeometryUtilities) | Custom UI elements using add-ins (Code Files: AddGraphicsTool) | Bind a geodatabase table to a .NET control (Code Files: FieldPropertyDescriptor) | RSS weather layer (Code Files: RSSWeatherLayerClass) | Create a custom tool (Code Files: DrawGraphicLine)

.NET Related Topics

Casting between interfaces | Create a custom tool | How to use the IEnumSegment methods | Simplifying a feature geometry | Working with the edit sketch