windowsforms-devexpress-dot-xtramap-dot-mapoverlayimageitem.md
Gets or sets the image that the overlay item displays.
Namespace : DevExpress.XtraMap
Assembly : DevExpress.XtraMap.v25.2.dll
NuGet Package : DevExpress.Win.Map
[DefaultValue(null)]
public Image Image { get; set; }
<DefaultValue(Nothing)>
Public Property Image As Image
| Type | Default | Description |
|---|---|---|
| Image | null |
The image that the overlay item displays.
|
Note that the properties that specify an image that the overlay image item uses has the following order of priorities.
MapOverlayImageItem.ImageThe following code snippet (auto-collected from DevExpress Examples) contains a reference to the Image 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.
MapOverlayImageItem copyrightImageItem = new MapOverlayImageItem();
copyrightImageItem.Image = Image.FromStream(stream);
copyrightImageItem.Alignment = ContentAlignment.MiddleLeft;
Dim copyrightImageItem As New MapOverlayImageItem()
copyrightImageItem.Image = Image.FromStream(stream)
copyrightImageItem.Alignment = ContentAlignment.MiddleLeft
See Also