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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close