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
Create Animation from Path |
Create Graphic Buffers around Selected Features |
Flip Line Direction |
Zoom to Selected Globe Features
.NET Samples
Curve conversion add-in (Code Files:
CurveConversionDockWin) |
Custom reshape polyline edit task (Code Files:
ReshapePolylineEditTask) |
Points along line construction tool (Code Files:
PointsAlongLineForm) |
ViperPin tool (Code Files:
ViperPinForm) |
Tabbed feature inspector (Code Files:
TabbedInspector) |
Executing geoprocessing tools in the background (Code Files:
RunGPForm) |
Calculate area geoprocessing function tool (Code Files:
CalculateAreaFunction) |
Move a graphic along a path in ArcMap (Code Files:
cmdMoveGraphicAlongPath) |
ArcGIS Network Analyst extension barrier location editor (Code Files:
EditorForm) |
Create camera flyby from path (Code Files:
frmCameraPath) |
Tabbed feature inspector (Code Files:
ObjectInspector)
.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 merge conflicting geometries during a reconcile |
How to zoom to selected features in globe |
Using feature templates