IRepresentationRenderer Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IR > IRepresentationRenderer Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IRepresentationRenderer Interface

Provides access to the properties and methods of a RepresentationRenderer.

Product Availability

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

Members

Name Description
Read/write property DrawInvalidRule Indicates if representations with an invalid Rule ID will draw.
Read/write property DrawInvisible Indicates whether or not invisible representations will be drawn.
Read/write property InvalidRuleColor Color used for representations with an invalid rule ID.
Read/write property InvisibleColor Color used for invisible representations.
Read/write property RepresentationClass Property RepresentationClass.

CoClasses that implement IRepresentationRenderer

CoClasses and Classes Description
RepresentationRenderer A renderer that draws features using representation information stored in the layer�s data source.

Remarks

IRepresentationRenderer interface has properties useful for managing a RepresentationRenderer. A Representation Renderer is useful for displaying features using the representation information stored in any of its Representation Classes. RepresentationClass property can be used to set reference to a representation class or to make changes to an existing one.

Use this interface to reference the renderer to any available representation classes using RepresentationClass property so that all features are drawn with associated representation rules and any overriden attributes. Also, once the renderer renders all features, features having null rule values or invisible features may be managed using this interface.

InvalidRuleColor and InvisibleColor properties can be used to change colors and DrawInvalidRule and DrawInvisible properties can be used to control drawing of such feature representations.

The following piece of code shows how to get reference to a representation class using a feature layer in ArcMap which has been rendered using representation renderer.

[C#]

            IMap pMap;
            pMap=pMxDoc.FocusMap;
            IFeatureLayer pFeatLayer;
            pFeatLayer=(IFeatureLayer)pMap.get_Layer(0); //Get first layer in map
            IGeoFeatureLayer pGeoFeatLayer;
            pGeoFeatLayer=(IGeoFeatureLayer) pFeatLayer;
            IRepresentationRenderer pRepRenderer;
            IRepresentationClass pRepClass;
            if (pGeoFeatLayer.Renderer is RepresentationRenderer)
            {
                pRepRenderer=(IRepresentationRenderer)pGeoFeatLayer.Renderer;
                pRepClass=pRepRenderer.RepresentationClass;
            }