Back to Devexpress

MapControl.ImageList Property

windowsforms-devexpress-dot-xtramap-dot-mapcontrol-bc51a74d.md

latest3.0 KB
Original Source

MapControl.ImageList Property

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

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

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

Property Value

TypeDefaultDescription
Objectnull

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

|

Example

View Example

csharp
mapControl.ImageList = CreateImageList();
object CreateImageList() {
    ImageCollection collection = new ImageCollection() {
        ImageSize = new Size(40, 40)
    };
    collection.Images.Add(new Bitmap(imageFilepath));
    return collection;
}
vb
mapControl.ImageList = CreateImageList()
Private Function CreateImageList() As Object
    Dim collection As New ImageCollection() With {.ImageSize = New Size(40, 40)}
    collection.Images.Add(New Bitmap(imageFilepath))
    Return collection
End Function

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ImageList property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-map-customize-mini-map-layers/CS/MiniMapLayers/Form1.cs#L33

csharp
#region #AssignImageList
mapControl.ImageList = CreateImageList();
#endregion #AssignImageList

winforms-map-customize-mini-map-layers/VB/MiniMapLayers/Form1.vb#L35

vb
'#Region "#AssignImageList"
            Me.mapControl.ImageList = Me.CreateImageList()
'#End Region ' #AssignImageList

See Also

MapControl Class

MapControl Members

DevExpress.XtraMap Namespace