在 Word 2010 中对导航窗格进行编程
我正在尝试找到一种方法来对 Word 2010 中的新导航窗格进行编程,以在用户选择文档中的图片时更改选项卡。我可以使用 WindowSelectionChange(ByVal Sel As Selection) 捕获选择更改,但我不知道如何将选项卡从“浏览标题”更改为“浏览页面”,这就是我的操作想。
I'm trying to find a way to program the new Navigation pane in Word 2010 to change tabs when a user selects a picture in the document. I can capture the selection change with WindowSelectionChange(ByVal Sel As Selection)
, but I can't figure out how change the tab from "Browse the headings" to "Browse the pages", which is what I want.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 iAccessible 是可能的!
然后深度递归地找到具有
accName="Navigation"
和accRole=38
的子级,然后其索引为 3 的子级具有
accValue=NAVBAR
和accRole=60
那么 NAVBAR 的子 2 就是您所需要的。
It is possible using iAccessible!
Then deep recursively find a child with
accName="Navigation"
andaccRole=38
then its child with index 3 has
accValue=NAVBAR
andaccRole=60
Then the child 2 of NAVBAR is what you need.
根据此 的 MVP线程,它不可编程/可搜索。
According to the MVP on this thread, it's not programmable/searchable.