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

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

RepresentationRulesClass Class

A collection of representation rules 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
IClone (esriSystem) Provides access to members that control cloning of objects.
IDocumentVersionSupportGEN (esriSystem) Provides access to extend the IObjectStream interface with methods to hande saving objects that did not exist in previous versions of the software.
IPersist (esriSystem)
IPersistStream (esriSystem)
IRepresentationRules Provides access to members that supply information about the representation rules of a feature class representation.
ISupportErrorInfo (esriSystem)


RepresentationRules is a collection of RepresentationRule objects useful for representing features in a representation class. Features can be categorized into groups based on these rules. A representation class is associated with a single set of rules managed by IRepresentationRules interface.

RepresentationRule is a combination of one or more basic symbols such as BasicMarkerSymol along with MarkerPlacement, BasicLineSymbol and BasicFillSymbol implementing IBasicSymbol interface.  Complex symbols can be created by incorporating geometric effect(s). Standard ArcGIS symbols such as SimpleMarkerSymbol, SimpleLineSymbol etc implementing ISymbol interface can also be converted to basic symbols using for using them within a rule using IRepresentationRuleInit interface.

To access individual rules, use IRepresentationRules.Next method.

A new representation rules collection has to be created or a reference to an existing Representation Rules has to be made prior to converting a feature class into a representation class. The representation rules can also be modified by adding or removing individual rules, updating graphic attributes, adding/removing basic symbols, adding/removing geometric effects etc., or use IRepresentationClass.RepresentationRules to get a reference to an existing representation rules object.

Note: IRepresentationRule and IRepresentationRuleInit are interfaces present in esriDisplay library.