Back to Devexpress

MapControl.CalcHitInfo(CoordPoint) Method

windowsforms-devexpress-dot-xtramap-dot-mapcontrol-dot-calchitinfo-x28-devexpress-dot-map-dot-coordpoint-x29.md

latest1.7 KB
Original Source

MapControl.CalcHitInfo(CoordPoint) Method

Returns information on the map elements located at the specified coordinates.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public MapHitInfo CalcHitInfo(
    CoordPoint hitPoint
)
vb
Public Function CalcHitInfo(
    hitPoint As CoordPoint
) As MapHitInfo

Parameters

NameTypeDescription
hitPointCoordPoint

The hit point coordinates, in map coordinates.

|

Returns

TypeDescription
MapHitInfo

The object containing information on the map elements located at the hit point.

|

Remarks

Use the CalcHitInfo method to determine which element is located at the specified hit point.

Note

The returned MapHitInfo object does not contain the test point location in map coordinates. To obtain the location, use the MapControl.ScreenPointToCoordPoint method.

See Also

MapControl Class

MapControl Members

DevExpress.XtraMap Namespace