This document is archived and information here might be outdated. Recommended version. |
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*
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.