This document is archived and information here might be outdated. Recommended version. |
Provides access to the properties and methods of a RepresentationRenderer.
Name | Description | |
---|---|---|
DrawInvalidRule | Indicates if representations with an invalid Rule ID will draw. | |
DrawInvisible | Indicates whether or not invisible representations will be drawn. | |
InvalidRuleColor | Color used for representations with an invalid rule ID. | |
InvisibleColor | Color used for invisible representations. | |
RepresentationClass | Property RepresentationClass. |
CoClasses and Classes | Description |
---|---|
RepresentationRenderer | A renderer that draws features using representation information stored in the layer�s data source. |
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.
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;
}