System.Windows.Forms.HtmlDocument.GetElementFromPoint Method

Retrieves the HTML element located at the specified client coordinates.

Syntax

public HtmlElement GetElementFromPoint (System.Drawing.Point point)

Parameters

point
The x,y position of the element on the screen, relative to the top-left corner of the document.

Returns

The System.Windows.Forms.HtmlElement at the specified screen location in the document.

Remarks

HtmlDocument.GetElementFromPoint(System.Drawing.Point) uses client coordinates, in which the upper-left corner of the document is assigned the value (0,0). Client coordinates for the current position of the cursor can be obtained using the HtmlWindow.Position property.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0