Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

MapControl.CalcHitInfo(CoordPoint) Method

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

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.dll

NuGet Package: DevExpress.Win.Map

#Declaration

public MapHitInfo CalcHitInfo(
    CoordPoint hitPoint
)

#Parameters

Name Type Description
hitPoint CoordPoint

The hit point coordinates, in map 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