HtmlContentControl.CalcHitInfo(Point) Method
Returns information about visual elements located at a specified point.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
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