windowsforms-devexpress-dot-xtramap-dot-mapitemseventargs.md
Returns map items to be represented in the map control.
Namespace : DevExpress.XtraMap
Assembly : DevExpress.XtraMap.v25.2.dll
NuGet Package : DevExpress.Win.Map
public IEnumerable<MapItem> Items { get; }
Public ReadOnly Property Items As IEnumerable(Of MapItem)
| Type | Description |
|---|---|
| IEnumerable<MapItem> |
The map items’ collection.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Items 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-load-data-from-a-sql-geometry-data-source/CS/SqlGeometry/Form1.cs#L37
private void MapEditor_MapItemEdited(object sender, MapItemEditedEventArgs e) {
foreach (MapPath path in e.Items) {
int id = Convert.ToInt32(path.Attributes["id"].Value);
winforms-map-load-data-from-a-sql-geometry-data-source/VB/SqlGeometry/Form1.vb#L36
Private Sub MapEditor_MapItemEdited(ByVal sender As Object, ByVal e As DevExpress.XtraMap.MapItemEditedEventArgs)
For Each path As DevExpress.XtraMap.MapPath In e.Items
Dim id As Integer = System.Convert.ToInt32(path.Attributes(CStr(("id"))).Value)
See Also