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

Representation Class (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Classes > R > Representation Class
ArcGIS Developer Help

RepresentationClass Class

A Feature Representation object.

Product Availability

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

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.


Interfaces Description
IGraphicsOutline (esriDisplay) Provides access to methods dealing with the outline of a graphics.
IOverride Provides access to members that manage property overrides of a representation.
IRepresentation Provides access to members that return and set properties of a representation.
ISupportErrorInfo (esriSystem)


A feature Representation is a feature enabled with representation capabilities. When a new RepresentationClass is created, every feature in the feature class can be represented as individual representation using representation rules and override information present in the attribute fields RuleIDField and OverrideField. Since a single feature class can be asociated with multiple representation classes, a single feature can be rendered differently depending on the current representation class for drawing.

A representation is associated with a single feature in a representation class just like a feature represents a single row within a feature class.

Use IRepresentationClass.GetRepresentation method to get representation of features with respect to different map contexts.  

Representations can be displayed using information from any of the following options:

  1. RepresentationRule stored in RuleID field. 
  2. RepresentationRule along with Override information stored in Override field and 
  3. Graphics known as free representation. This value of RuleID is -1 and the entire graphic is written into the Override field. So, a free representation can be considered as an override too.

Use IRepresentation interface to manage the properties of a feature representation including creating or modifying its shape overrides.

Use IOverride interface to manage the attribute overrides present for a feature representation. This interface cannot be used to set new attribute overrides. For this purpose, use IRepresentation::Value property along with the correct set of GraphicAttributes and index of the attribute you wish to alter.