Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

elementFromPoint method

Returns the element for the specified x coordinate and the specified y coordinate.

Syntax


IHTMLElement retVal = object.elementFromPoint(x, y);

Parameters

x [in]

Type: long

A long that specifies the X-offset, in pixels.

y [in]

Type: long

A long that specifies the Y-offset, in pixels.

Standards information

There are no standards that apply here.

Remarks

Coordinates are supplied in client coordinates. The upper-left corner of the client area is (0,0). For IHTMLDocument2::elementFromPoint to exhibit expected behavior, the object or element located at position (x, y) must support and respond to mouse events.

See also

Reference
IHTMLEventObj::clientX
IHTMLEventObj::clientY

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.