【发布时间】:2021-07-13 14:00:35
【问题描述】:
我是 excel 编程新手。 我需要制作类似this 的东西(导航栏上的新标签和一些按钮)。
主要问题是如何创建一个新标签(如图片上的 FWO-Office-Addins)。谢谢帮忙!
【问题讨论】:
-
请将您尝试过的方法添加到您的问题中
标签: excel outlook-addin add-in office-addins excel-addins
我是 excel 编程新手。 我需要制作类似this 的东西(导航栏上的新标签和一些按钮)。
主要问题是如何创建一个新标签(如图片上的 FWO-Office-Addins)。谢谢帮忙!
【问题讨论】:
标签: excel outlook-addin add-in office-addins excel-addins
您对带有自定义功能区选项卡的插件命令感兴趣。例如,以下示例展示了如何使用具有 PrimaryCommandSurface 属性值的 ExtensionPoint 元素,以及应与每个元素一起使用的子元素:
<ExtensionPoint xsi:type="PrimaryCommandSurface">
<CustomTab id="Contoso Tab">
<!-- If you want to use a default tab that comes with Office, remove the above CustomTab element, and then uncomment the following OfficeTab element -->
<!-- <OfficeTab id="TabData"> -->
<Label resid="residLabel4" />
<Group id="Group1Id12">
<Label resid="residLabel4" />
<Icon>
<bt:Image size="16" resid="icon1_32x32" />
<bt:Image size="32" resid="icon1_32x32" />
<bt:Image size="80" resid="icon1_32x32" />
</Icon>
<Tooltip resid="residToolTip" />
<Control xsi:type="Button" id="Button1Id1">
<!-- information about the control -->
</Control>
<!-- other controls, as needed -->
</Group>
</CustomTab>
</ExtensionPoint>
在Add-in commands for Excel, PowerPoint, and Word 文章中了解更多信息。
【讨论】: