public override bool TryGetClickablePoint(out Point point) { var tagPoint = new UIA.tagPOINT { x = 0, y = 0 }; var success = ComCallWrapper.Call(() => NativeElement.GetClickablePoint(out tagPoint)) != 0; point = success ? new Point(tagPoint.x, tagPoint.y) : null; return(success); }
public override bool TryGetClickablePoint(out Point point) { var tagPoint = new UIA.tagPOINT { x = 0, y = 0 }; var success = ComCallWrapper.Call(() => NativeElement.GetClickablePoint(out tagPoint)) != 0; if (success) { point = new Point(tagPoint.x, tagPoint.y); } else { success = Properties.ClickablePoint.TryGetValue(out point); } return(success); }
public static Point ToPoint(this UIA.tagPOINT p) { return(new Point(p.x, p.y)); }