Back to Devexpress

MapHitInfo Class

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

latest1.5 KB
Original Source

MapHitInfo Class

Contains information about what is located at a specific point within the map.

Namespace : DevExpress.Xpf.Map

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

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public class MapHitInfo :
    IMapHitInfo
vb
Public Class MapHitInfo
    Implements IMapHitInfo

The following members return MapHitInfo objects:

Example

This example shows how to use the MapControl.CalcHitInfo method to determine which map shape is located at the specified point.

csharp
MapShape shape = mapControl.CalcHitInfo(e.GetPosition(mapControl)).MapPath as MapShape;
vb
Dim shape As MapShape = TryCast(mapControl.CalcHitInfo(e.GetPosition(mapControl)).MapPath, MapShape)

Inheritance

Object MapHitInfo

See Also

MapHitInfo Members

DevExpress.Xpf.Map Namespace