0
如果選擇了AutomationElement或沒有選擇,是否有任何方法來獲取。我用下面的代碼來獲得AutomationElement對象。我們如何檢查AutomationElement是否被選中c#
System.Windows.Point point = new System.Windows.Point(Cursor.Position.X, Cursor.Position.Y);
AutomationElement element = AutomationElement.FromPoint(point);
//how to know element is selected or not
你的意思是'選擇'或'聚焦'? –