DesignerDocument.elementFromPoint Method

SharePoint Designer Developer Reference

Returns the IHTMLElement object that corresponds to the specified page coordinates.

Syntax

expression.elementFromPoint(x, y)

expression   Required. A variable that represents a DesignerDocument object.

Parameters

Name Required/Optional Data Type Description
x Required Long Represents a specified point on the horizontal axis from the left edge of the page.
y Required Long Represents a specified point on the vertical axis from the top edge of the page.

Return Value
IHTMLElement

Remarks

The coordinates correspond to page coordinates (0, 0 is the upper-left corner of the page). For the elementFromPoint method to exhibit the expected behavior, the object or element located at position (x, y) must support and respond to mouse events.

See Also