HtmlContentControl.CalcHitInfo(Point) Method
In This Article
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
#Parameters
Name | Type | Description |
---|---|---|
location | Point | Test point coordinates relative to the Html |
#Returns
Type | Description |
---|---|
DevExpress. |
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