ColorListLegend.ImageList Property

Gets or sets the source of images to be displayed within a legend.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.1.dll

Declaration

[DefaultValue(null)]
public object ImageList { get; set; }
<DefaultValue(Nothing)>
Public Property ImageList As Object

Property Value

Type Default Description
Object

null

An object which represents the source of the images that can be displayed within the map control.

Examples

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

    mapControl.Legends.Add(CreateLegend());
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