[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Collapse]Map Control
   [Expand]Getting Started
    Layers
   [Expand]Coordinate Systems
   [Expand]Map Image Data
   [Expand]GIS Data
   [Expand]Vector Data
   [Expand]Visual Elements
   [Collapse]Examples
    [Expand]General
    [Expand]Map Image Data
    [Expand]GIS Data
    [Collapse]Vector Data
     [Expand]Providing Data
     [Expand]Colorize Data
     [Collapse]Customize Data Appearance
       How to: Load a Vector Cartesian Map from a Shapefile
       How to: Automatically Load Cartesian Data to a Geo Map
       How to: Manually Load Cartesian Data to a Geo Map Using Predefined Coordinate Converters
       How to: Customize the Appearance of Vector Elements
       How to: Dynamically Update Vector Items Data
       How to: Add Images to a Legend
       How to: Specify a Map Projection
       How to: Implement a Custom Map Projection
       How to: Specify the Width-to-Height Ratio of Map Projection
    [Expand]Printing and Exporting
   [Expand]End-User Features
   [Expand]Product Information
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How to: Add Images to a Legend

This example shows how to use images in a map legend.

The following symbols are used in the example:

ColorListLegend.ImageList

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

ColorListLegend.CustomItems

Provides access to the collection of custom legend items.

ColorLegendItem

An item that stores information about the color and description of the ColorLegendBase class descendants.

ColorLegendItem.ImageIndex

Gets or sets the index of an image used by this legend item.

Is this topic helpful?​​​​​​​