A newer version of this page is available. Switch to the current version.

ColorListLegend.CustomItems Property

Provides access to the collection of custom legend items.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v19.2.dll


public MapLegendItemCollection CustomItems { get; }
Public ReadOnly Property CustomItems As MapLegendItemCollection

Property Value

Type Description

A MapLegendItemCollection object.


This example shows how to customize color list map legend items. To do this, use the ColorListLegend.CustomItems collection.

MapLegendBase CreateLegend() {
    ColorListLegend legend = new ColorListLegend() {
        ImageList = mapControl.ImageList,
        Alignment = LegendAlignment.TopRight
    legend.CustomItems.Add(new ColorLegendItem() {
        ImageIndex = 0,
        Text = "Shipwreck Location"
    return legend;
See Also