This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Classes > R > RepresentationRules CoClass (ArcObjects .NET 10.5 SDK) |
A collection of representation rules object.
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 | Defines the single method GetClassID, which is designed to supply the CLSID of an object that can be stored persistently in the system. IPersist is the base interface for three other interfaces: IPersistStorage, IPersistStream, and IPersistFile. |
IPersistStream (esriSystem) | |
IRepresentationRules | Provides access to members that supply information about the representation rules of a feature class representation. |
ISupportErrorInfo | Indicates whether a specific interface can return Automation error objects. |
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.