IMapServerLegendGroup Interface

Provides access to the Map Server Legend Group Interface.

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

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

IMapServerLegendGroup.Classes Property

A collection of legend class objects.

Public ReadOnly Property Classes As IMapServerLegendClasses
public IMapServerLegendClasses Classes {get;}

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.

IMapServerLegendGroup.Heading Property

The heading string.

Public ReadOnly Property Heading As String
public string Heading {get;}

Classes that implement IMapServerLegendGroup

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 .

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.