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


IRepresentation.Shape Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IRepresentation.Shape Property

Representation geometry.

[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

Shape property returns a reference to either the actual shape of the feature or the overriden shape of the representation depending on whether a shape override exists for the representation.

Use Shape property to create shape override which gets stored into the Override field. UpdateFeature and IFeature::Store methods must be called after the shape is altered to persist the changes.

If IRepresentationClass::RequireShapeOverride returns False then altering the shape of the feature representation will directly alter the feature's shape.

Note: It is necessary to set IRepresentationClass::RequireShapeOverride property to True, if you wish to store the shape overrides into Override field rather than altering the actual feature's shape.

 

 

See Also

IRepresentation Interface