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


IRendererClasses Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IRendererClasses Interface

Provides access to members that provides the information of layer annotation classes.

Product Availability

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

Description

This interface provides access to properties of a renderer's classes. Some of this information can also be accessed via interfaces specific to the particular renderer.

Members

Description
Read-only property Class Class name.
Read-only property ClassCount Number of classes.
Read-only property WhereClause WhereClause.

CoClasses that implement IRendererClasses

CoClasses and Classes Description
ClassBreaksRenderer A renderer that can be used to draw graduated color (choropleth) and graduated symbol maps.
RepresentationRenderer A renderer that draws features using representation information stored in the layer�s data source.
UniqueValueRenderer A unique values renderer where symbols are assigned to features based on an unique attribute values.
UniqueValueTextRenderer (esriTrackingAnalyst) This is a feature renderer that supports rendering points using values from a field in the feature class.

Remarks

This interface is most useful for returning an SQL where clause that can be used to query for the features in a renderer class. This interface is supported only by the ClassBreaksRenderer and UniqueValueRenderer. The framework uses this interface to build label classes based on renderer symbology classes.

You can access Class and ClassCount information via the specific renderer interfaces IClassBreaksRenderer and IUniqueValueRenderer. You can also access this information via ILegendInfo for a given renderer.

To make a change to the number of classes in a given renderer, use the renderer specific interfaces.

Note that neither the ClassBreaksRenderer or UniqueValueRenderer structure their classes based on SQL where clauses. However, this interface can be used to generate a query to match the class defined for a particular renderer. This can be useful, for example, to select all of the features in a feature layer that fall within the 2nd highest class of the graduated color symbology assigned to the layer by a ClassBreaksRenderer.