Back to Devexpress

HtmlContentControl.CalcHitInfo(Point) Method

windowsforms-devexpress-dot-xtraeditors-dot-htmlcontentcontrol-dot-calchitinfo-x28-system-dot-drawing-dot-point-x29.md

latest1.9 KB
Original Source

HtmlContentControl.CalcHitInfo(Point) Method

Returns information about visual elements located at a specified point.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public DxHtmlHitInfo CalcHitInfo(
    Point location
)
vb
Public Function CalcHitInfo(
    location As Point
) As DxHtmlHitInfo

Parameters

NameTypeDescription
locationPoint

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

|

Returns

TypeDescription
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:

csharp
Point pt = System.Windows.Forms.Cursor.Position;
var hitInfo = htmlContentControl1.CalcHitInfo(htmlContentControl1.PointToClient(pt));
FindForm().Text = hitInfo.TagName;
vb
Dim pt As Point = System.Windows.Forms.Cursor.Position
Dim hitInfo = htmlContentControl1.CalcHitInfo(htmlContentControl1.PointToClient(pt))
FindForm().Text = hitInfo.TagName

See Also

HtmlContentControl Class

HtmlContentControl Members

DevExpress.XtraEditors Namespace