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


ILegendGroup Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILegendGroup Interface
ArcGIS Developer Help

ILegendGroup Interface

Provides access to members that control the collection of legend classes provided by a renderer.

Product Availability

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

Members

Name Description
Method AddClass Adds a new legend class to the group at the end of list.
Read-only property Class Legend class at the specified index.
Read-only property ClassCount Number of legend classes in the group.
Method ClearClasses Removes all classes from the group.
Read/write property Editable Indicates if the group can be edited. Default is editable.
Read/write property Heading String heading.
Method InsertClass Inserts a new legend class into the group at the specified index.
Method RemoveClass Removes the legend class from the group at the specified index.
Read/write property Visible Indicates if the group is displayed.

Classes that implement ILegendGroup

Classes Description
LegendGroup The collection of legend classes provided by a renderer.
TemporalLegendGroup (esriTrackingAnalyst) Contains group of two or more temporal legend classes.

Remarks

This interface manages an array of LegendClass objects. Inside a LegendClass object is one Symbol object. Classes can be looked up, but modifying the number of classes through addition, insertion, and deletion is the job of the renderer object.

.NET Samples

Multivariate renderer