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

IFeature.Shape Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IF > IFeature Interface > IFeature.Shape Property
ArcGIS Developer Help

IFeature.Shape Property

A reference to the default shape for the feature.

[Visual Basic .NET]
Public Property Shape As IGeometry
public IGeometry Shape {get; set;}
HRESULT get_Shape(
  IGeometry** Shape
HRESULT putref_Shape(
  IGeometry* Shape
Shape [out, retval]

Shape is a parameter of type IGeometry** Shape [in]
Shape is a parameter of type IGeometry*

Product Availability

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


The basic process to change the shape of a feature is:

1) Get the feature's existing geometry through IFeature.ShapeCopy or create a new geometry
2) Modify the geometry
3) Set the feature's geometry using IFeature.Shape
4) Store the feature

All edits to features that participate in a Topology or Geometric Network must be performed within an edit session and bracketed within an edit operation.

See Also

IFeature Interface

.NET Samples

Move a graphic along a path in ArcMap Create camera flyby from path Custom reshape polyline edit task Tabbed feature inspector Calculate area geoprocessing function tool Executing geoprocessing tools in the background ArcGIS Network Analyst extension barrier location editor Points along line construction tool Tabbed feature inspector ViperPin tool