Home Cooker Classes Others Rice CookerGX
Classes  >  document  >  ElementFromPoint(int,int)
document class : ElementFromPoint(int,int) method

Description

Returns the element on the specified coordinates.

Syntax

documentInstance.ElementFromPoint(int x, int y)

Arguments

ClassNameDescription
intxX offset from the upper-left corner of the display area of the browser, in pixels.
intyY offset from the upper-left corner of the display area of the browser, in pixels.

Return value

ClassDescription
elementAn instance of the element type.

Sample code

document d = new document();

element e =d.ElementFromPoint(100, 100);

Notes

It's a wrapper of the MSHTML.IHTMLDocument2.elementFromPoint(Int, Int).

Coordinates are specified in client coordinates. The client coordinates is the coordinates where the upper-left corner of the display area of the browser is (0,0).

Links for reference

Copyright © Rice All rights reserved.