VSTO:更改现有的 Word 功能区选项卡
使用 Visual Studio 2008 Pro 是否可以更改现有的 Word 功能区项目? 例如,我可以向“邮件”选项卡中的“完成”组添加额外的邮件合并选项吗?
Using Visual Studio 2008 Pro, is it possible to make changes to the existing Word ribbon items?
For example, can I add an additional mail merge option to the "Finish" group in the "Mailing" tab?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,您只能将组添加到内置选项卡,而不能将控件添加到内置组。 如果要将组添加到内置选项卡:
可视化设计器:
将选项卡的 ControlTypeId 设置为 Office,将 ControlId 设置为 TabMailings,然后您可以向其中添加项目,就像邮件选项卡功能
区 XML 一样:
就做这样的事情
As far as I can tell, you can only add groups to built tabs, you can't add controls to built in groups. If you want to add a group to a built in tab:
Visual Designer:
Set the ControlTypeId of the tab to Office and the ControlId to TabMailings, you can then add items to it like it were the Mailings tab
Ribbon XML:
just do something like this