ArcObjects Library Reference (GeoDatabase)  

IFeature.Shape Property

A reference to the default shape for the feature.

[Visual Basic .NET]
Public Property Shape As IGeometry
[C#]
public IGeometry Shape {get; set;}
[C++]
HRESULT get_Shape(
  IGeometry** Shape
);
[C++]
HRESULT putref_Shape(
  IGeometry* Shape
);
[C++]

Parameters

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.

Remarks

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 Snippets

Zoom to Selected Globe Features | Flip Line Direction | Create Animation from Path | Create Graphic Buffers around Selected Features |

.NET Samples

Calculate area geoprocessing function tool (Code Files: CalculateAreaFunction) | Create camera flyby from path (Code Files: frmCameraPath) | Curve conversion add-in (Code Files: CurveConversionDockWin) | Custom reshape polyline edit task (Code Files: ReshapePolylineEditTask) | Executing geoprocessing tools in the background (Code Files: RunGPForm) | Implementing a schematic layout algorithm and its layout property page (Code Files: TranslateTree) | Move a graphic along a path in ArcMap (Code Files: cmdMoveGraphicAlongPath) | Network Analyst barrier location editor (Code Files: EditorForm) | Points along line construction tool (Code Files: PointsAlongLineForm) | Tabbed feature inspector (Code Files: ObjectInspector TabbedInspector) | ViperPin tool (Code Files: ViperPinForm) |

.NET Related Topics

Updating features | 3DAnalyst | Creating features | Executing spatial queries | Geodatabase API best practices | How to add point IDs to a polyline | How to animate the camera along a path (line feature) in globe | How to create a union of several polygons | How to develop the SOE | How to merge conflicting geometries during a reconcile | How to zoom to selected features in globe | Server object extensions (SOE) | Using feature templates | Utility COM objects |