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

IRepresentationRules Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRepresentationRules Interface
ArcGIS Developer Help

IRepresentationRules Interface

Provides access to members that supply information about the representation rules of a feature class representation.

Product Availability

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


Name Description
Method Add Adds a new representation rule to the collection.
Method Exists Checks whether the given representation rule exists in the collection.
Read/write property Index Index of a representation rule indicated by its ID.
Read/write property Name Name of a representation rule indicated by its ID.
Method Next Returns the next representation rule in the enumeration.
Method Remove Removes the representation rule identified by its ID.
Method RemoveAll Removes all the representation rules from the collection.
Method Reset Resets the representation rule enumeration to the beginning.
Read/write property Rule The representation rule indicated by its ID.

Classes that implement IRepresentationRules

Classes Description
RepresentationRules A collection of representation rules object.


IRepresentationRules interface provides access to the members of the representation rules collection on a representation class. This interface can be used to add, remove or modify rules in representation rules collection.

Use Reset and Next methods to reset the cursor to the beginning of the collection and to access the next rule along with its unique ID. While ID starts with 1 and is useful to identify the rule, the index starts with 0 and determines the position of the rule in the collection. The RuleID field in the feature class attribute table contains this ID value.

Add method adds a new rule to the collection. If no name, index and representation rule are defined, the method will automatically assign default values including a unique rule ID. It is the responsibility of the user to modify the rules and attribute features with the representation rule information.