Home Cooker Classes Others Rice CookerGX
Classes  >  element  >  ComponentFromPoint(int,int)
element class : ComponentFromPoint(int,int) method

Description

Returns the component located at the specified coordinates.

Syntax

elementInstance.ComponentFromPoint(int x,int y)

Arguments

ClassNameDescription
intxx-coordinate.
intyy-coordinate.

Return value

ClassDescription
stringThe value that indicates the components that are located under the specified coordinates.

Sample code

//anyElement is any instance of element type.

string component = anyElement.componentFromPoint(0,0);

Notes

It's a wrapper of the MSHTML.IHTMLElement2.componentFromPoint(Int,Int).

This method indicates whether the specified coordinates are over the invoker element.

If the coordinates are over the invoker element, this method returns UI conponent name which there is under the coordinates.

Links for reference

Copyright © Rice All rights reserved.