AtspiUiaSource.Element.GetDescendantFromPoint C# (CSharp) Method

GetDescendantFromPoint() public method

public GetDescendantFromPoint ( double x, double y ) : IElement
x double
y double
return IElement
		public IElement GetDescendantFromPoint (double x, double y)
		{
			Component component = accessible.QueryComponent ();
			if (component == null)
				return this;
			Accessible descendant = component.GetAccessibleAtPoint ((int)x, (int)y, CoordType.Screen);
			if (descendant == null)
				return this;
			return GetElement (descendant);
		}