Get the UIControl from any point on desktop

Namespace:  QAliber.Engine.Controls.UIA
Assembly:  QAliber.Engine (in QAliber.Engine.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public UIControlBase GetControlFromPoint(
	Point pt
)
Visual Basic (Declaration)
Public Function GetControlFromPoint ( _
	pt As Point _
) As UIControlBase
Visual C++
public:
virtual UIControlBase^ GetControlFromPoint(
	Point pt
) sealed

Parameters

pt
Type: System.Windows..::.Point
Point(x,y)- x,y are pixels

Return Value

UIControl from the specified point

Implements

IControlLocator..::.GetControlFromPoint(Point)

Examples

CopyC#
UIControl control = Desktop.UIA.GetControlFromPoint(new Point(300, 300));
string controlName = control.Name;

See Also