Skip to main content
A newer version of this page is available. .

MapControl.CalcHitInfo(MapPoint) Method

Returns information on the map elements located at the specified screen point.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v19.2.dll

Declaration

public MapHitInfo CalcHitInfo(
    MapPoint hitPoint
)

Parameters

Name Type Description
hitPoint MapPoint

The hit point coordinates, relative to the map’s top-left edge floating point screen coordinates.

Returns

Type Description
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