This document is archived and information here might be outdated.  Recommended version.


IFeatureClass.ShapeType Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IFeatureClass.ShapeType Property

The type of the default Shape for the features in this feature class.

[Visual Basic .NET]
Public ReadOnly Property ShapeType As esriGeometryType
[C#]
public esriGeometryType ShapeType {get;}
[C++]
HRESULT get_ShapeType(
  esriGeometryType* Type
);
[C++]

Parameters Type [out, retval]
Type is a parameter of type esriGeometryType

Product Availability

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

Description

ShapeType returns the basic type of geometry of a shape. For the purposes of using the ShapeType property in deciding how to render/symbolize a layer, only esriGeometryPolyline, esriGeometryPolygon, esriGeometryPoint, esriGeometryMulitpoint, and esriGeometryMultipatch need to be checked. All the other types will report as being one of these five types. The reason is that esriGeometryBezier3Curve or esriGeometryPath, etc. can be segments or parts of another shape.

Remarks

This read-only property returns the shape type for the feature class. This shape type can be one of the following esriGeometryType.

See Also

IFeatureClass Interface | IFeatureClass.ShapeType Property | esriGeometryType Constants

.NET Samples

ArcGIS Network Analyst extension Engine application (Code Files: frmLoadLocations) | 3D dynamic element tracking (Code Files: TrackDynamicObject) | Buffer snap agent (Code Files: BufferSnap) | StreetMap routing (Code Files: RoutingForm) | Multivariate renderer (Code Files: MultivariateRenderer)

.NET Related Topics

3DAnalyst