Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 找不到System.Windows.Point_C#_Windows_Winforms_Ui Automation_Point - Fatal编程技术网

C# 找不到System.Windows.Point

C# 找不到System.Windows.Point,c#,windows,winforms,ui-automation,point,C#,Windows,Winforms,Ui Automation,Point,我正在使用UIAutomation方法 System.Windows.Automation.AutomationElement.FromPoint(System.Windows.Point) 通过鼠标光标获取元素,但我找不到类型System.Windows.Point。我查找了对象库,但它仍然不可见 我使用的是.NETFramework4.5 System.Windows.Point是WPF的一部分,如果您试图在WinForms应用程序中执行此操作,则不受支持–Peter Ritchie 10

我正在使用
UIAutomation
方法

System.Windows.Automation.AutomationElement.FromPoint(System.Windows.Point)

通过鼠标光标获取元素,但我找不到类型
System.Windows.Point
。我查找了对象库,但它仍然不可见

我使用的是.NETFramework4.5

System.Windows.Point是WPF的一部分,如果您试图在WinForms应用程序中执行此操作,则不受支持–Peter Ritchie 10月4日0:10


System.Windows.Point
是WPF的一部分,如果您试图在WinForms应用程序中执行此操作,则不受支持。请添加对“WindowsBase”的引用。谢谢,Hans,它可以工作@汉斯帕桑,你能把那个评论转换成答案吗?