Back to Devexpress

MapItemsEventArgs.Items Property

windowsforms-devexpress-dot-xtramap-dot-mapitemseventargs.md

latest2.6 KB
Original Source

MapItemsEventArgs.Items Property

Returns map items to be represented in the map control.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public IEnumerable<MapItem> Items { get; }
vb
Public ReadOnly Property Items As IEnumerable(Of MapItem)

Property Value

TypeDescription
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

csharp
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

vb
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

MapItemsEventArgs Class

MapItemsEventArgs Members

DevExpress.XtraMap Namespace