Skip to main content
All docs
V24.2

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

HtmlContentControl.CalcHitInfo(Point) Method

Returns information about visual elements located at a specified point.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public DxHtmlHitInfo CalcHitInfo(
    Point location
)

#Parameters

Name Type Description
location Point

Test point coordinates relative to the HtmlContentControl’s top-left corner.

#Returns

Type Description
DevExpress.Utils.Html.DxHtmlHitInfo

An object that contains information about visual elements located at the test point.

#Remarks

The following example displays the name of a tag under the mouse cursor:

Point pt = System.Windows.Forms.Cursor.Position;
var hitInfo = htmlContentControl1.CalcHitInfo(htmlContentControl1.PointToClient(pt));
FindForm().Text = hitInfo.TagName;
See Also