VSTO:更改现有的 Word 功能区选项卡

发布于 2024-07-13 19:08:28 字数 90 浏览 4 评论 0原文

使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时常饿 2024-07-20 19:08:28

据我所知,您只能将组添加到内置选项卡,而不能将控件添加到内置组。 如果要将组添加到内置选项卡:

可视化设计器:
将选项卡的 ControlTypeId 设置为 Office,将 ControlId 设置为 TabMailings,然后您可以向其中添加项目,就像邮件选项卡功能

区 XML 一样:
就做这样的事情

<tabs>
   <tab idMso="TabMailings">
      <group id="MyGroup" label="My Group">
      </group>
   </tab>
</tabs>

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

<tabs>
   <tab idMso="TabMailings">
      <group id="MyGroup" label="My Group">
      </group>
   </tab>
</tabs>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文