vb.net 带有自定义按钮的 Outlook 插件主页选项卡
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24247405/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Outlook addin Home tab with custom button
提问by StealthRT
Hey all I am trying to create a button within the default Hometab in Outlook 2010. Problem being is that, in VS2013 I added a Ribbon (visual) and added the group with the button but it keeps adding that to the TabAddInstab.
嘿,我正在尝试在 Outlook 2010的默认主页选项卡中创建一个按钮。问题是,在 VS2013 中,我添加了一个功能区(视觉)并添加了带有按钮的组,但它一直将其添加到TabAddIns选项卡。




What do I need to set in order for that custom group/button to display in the Hometab instead of making its own tab?
我需要设置什么才能使该自定义组/按钮显示在“主页”选项卡中,而不是制作自己的选项卡?
Thanks!
谢谢!
回答by StealthRT
Got it!

知道了!

Using this link hereis was able to figure out that the Hometab was called TabMail.

使用这里这个链接是能够弄清楚该主页选项卡被称为TabMail。

And following these directions:
并遵循以下说明:
A built-in tab is a tab that is already on the Ribbon of an Outlook Explorer or Inspector. In this procedure, you will add the custom group to a built-in tab, and then specify the position of the custom group on the tab.
内置选项卡是已在 Outlook 资源管理器或检查器功能区上的选项卡。在此过程中,您将自定义组添加到内置选项卡,然后指定自定义组在选项卡上的位置。
To add the custom group to a built-in tab
将自定义组添加到内置选项卡
Click the TabAddins (Built-In) tab to select it.
单击 TabAddins (Built-In) 选项卡将其选中。
In the Properties window, expand the ControlId property, and then set OfficeId to TabMail.
在“属性”窗口中,展开 ControlId 属性,然后将 OfficeId 设置为 TabMail。
This adds the Customer Purchases group to the Messages tab of the Ribbon that appears in a new mail message.
这会将 Customer Purchases 组添加到出现在新邮件消息中的功能区的 Messages 选项卡。
Click the Customer Purchases group to select it.
单击 Customer Purchases 组以将其选中。
In the Properties window, expand the Position property, click the drop-down arrow next to the PositionType property, and then click BeforeOfficeId.
在“属性”窗口中,展开 Position 属性,单击 PositionType 属性旁边的下拉箭头,然后单击 BeforeOfficeId。
Set the OfficeId property to Find.
将 OfficeId 属性设置为查找。
This positions the Customer Purchases group before the Clipboard group of the Messages tab.
这将 Customer Purchases 组置于 Messages 选项卡的 Clipboard 组之前。

