windowsforms-devexpress-dot-xtramap-dot-mapcontrol-bc51a74d.md
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
[DefaultValue(null)]
public object ImageList { get; set; }
<DefaultValue(Nothing)>
Public Property ImageList As Object
| Type | Default | Description |
|---|---|---|
| Object | null |
An object which represents the source of the images that can be displayed within the map control.
|
mapControl.ImageList = CreateImageList();
object CreateImageList() {
ImageCollection collection = new ImageCollection() {
ImageSize = new Size(40, 40)
};
collection.Images.Add(new Bitmap(imageFilepath));
return collection;
}
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
#region #AssignImageList
mapControl.ImageList = CreateImageList();
#endregion #AssignImageList
winforms-map-customize-mini-map-layers/VB/MiniMapLayers/Form1.vb#L35
'#Region "#AssignImageList"
Me.mapControl.ImageList = Me.CreateImageList()
'#End Region ' #AssignImageList
See Also