ArcObjects Library Reference (Carto)  

IMapServerLegendGroup Interface

Provides access to the Map Server Legend Group Interface.

Product Availability

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

When To Use

Use IMapServerLegendGroup when retrieving individual legend elements including the symbol image, labels, descriptions and headings. To export a single image of the legend use ExportLegend on IMapServerLayout .

Members

Description
Read-only property Classes A collection of legend class objects.
Read-only property Heading The heading string.

CoClasses that implement IMapServerLegendGroup

CoClasses and Classes Description
MapServerLegendGroup The Map Server Legend Group coclass provides information about a legend group.

Remarks

Legends are associated with renderers that belong to each layer in a map. Each layer has a separate renderer. Each renderer has one or more legend groups. Each legend group has one or more legend classes. A MapServerLegendGroup contains one or more MapServerLegendClass objects. MapServerLegendGroup objects are part of the MapServerLegendInfo object. MapServerLegendInfo objects are the result of the GetLegendInfo method on IMapServer .