Back to Devexpress

MapDataAdapterBase.DisplayItems Property

wpf-devexpress-dot-xpf-dot-map-dot-mapdataadapterbase.md

latest2.1 KB
Original Source

MapDataAdapterBase.DisplayItems Property

Returns map items which are displayed by a map control.

Namespace : DevExpress.Xpf.Map

Assembly : DevExpress.Xpf.Map.v25.2.dll

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
[Browsable(false)]
public IEnumerable<MapItem> DisplayItems { get; }
vb
<Browsable(False)>
Public ReadOnly Property DisplayItems As IEnumerable(Of MapItem)

Property Value

TypeDescription
IEnumerable<MapItem>

A set of MapItem class descendant objects.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DisplayItems 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.

wpf-map-use-ray-casting-algorithm-to-check-if-point-is-inside-polygon/CS/DXMapShapeFile1/MainWindow.xaml.cs#L28

csharp
var hi = mapControl.CalcHitInfo(e.GetPosition(mapControl));
foreach (var item in vectorLayer.Data.DisplayItems) {
    if (IsPointInsideItem(item, point))

See Also

MapDataAdapterBase Class

MapDataAdapterBase Members

DevExpress.Xpf.Map Namespace