【发布时间】:2012-06-16 04:16:42
【问题描述】:
我正在尝试将水平滚动条的值从 -1 更改为 -2。 我可以访问它.. 但接下来我必须更改它的值..
AutomationElement _sideBar = _ClickButtonElement.FindFirst(TreeScope.Descendants, new PropertyCondition(AutomationElement.ClassNameProperty, "WindowsForms10.SCROLLBAR.app.0.378734a"));
_clickButtonElement 是滚动条父窗口的AutomationElement。
【问题讨论】:
标签: c# visual-studio-2010 user-interface automation scrollbar