不建议在同一进程中同时导入 System.Windows.Automation,System.Windows.Automation.3。
如果先导入了 System.Windows.Automation.3 则导入 System.Windows.Automation 时忽略不作任何操作。
说明
.NET System.Windows.Automation 组件。
System.Windows.Automation.3 扩展库可导入兼容的库。
用法相同且扩展了部分接口。
相关文档
System.Windows.Automation.And({
ClassName = "Notepad",
ControlType = "Window";
})
System.Windows.Automation.And({
ClassName = {"RichEditD2DPT","RICHEDIT50W","Edit" }
})
System.Windows.Automation.FindByAnd({
ClassName = "Notepad",
ControlType = "Window";
})
System.Windows.Automation.FindByOr({
ClassName = {"RichEditD2DPT","RICHEDIT50W","Edit" }
})