展望VSTO丝带家园tabControlId [英] Outlook VSTO ribbon to home tabControlId

查看:311
本文介绍了展望VSTO丝带家园tabControlId的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写一个 VSTO Microsoft Outlook中插件。该插件的版本目的地是Outlook 2007和2010年,所以我使用Outlook 2007外接(在Visual Studio)。

I'm writing a VSTO Microsoft Outlook plug-in. The version destination of that plugin is Outlook 2007 and 2010, so I use the Outlook 2007 add-in (in Visual Studio).

我有一些(视觉)问题ActiveMenuBar。在Outlook 2007中正常工作,但2010年ActiveMenuBar不存在;它会被替换的TabControl和彩带。

I have some (visual) problem with ActiveMenuBar. In Outlook 2007 it works fine, but in 2010 the ActiveMenuBar doesn't exist; it is replaced with tabControl and ribbons.

我想检查版本( Application.Version ),如果该版本是14(如Outlook 2010)那就不要添加项目到ActiveMenuBar,但色带添加到主屏幕的TabPage。

I would like to check the version (Application.Version) and if the version is 14 (Outlook 2010) then don't add an item into ActiveMenuBar, but add a ribbon to the Home tabPage.

如何做我添加了功能区入的首页标签页?例如,如果我添加功能区的邮件标签页,我设置了 ribbonControl.OfficeId 来TabReadMessage,但我不能找到在首页标签的OfficeId。

How do I add the Ribbon into the Home tab page? For example, if I add a ribbon to the Message tab page, I set the ribbonControl.OfficeId to "TabReadMessage", but I can't find the OfficeId of the Home tab.

推荐答案

设置控件ID属性(功能区设计特性)或idMso(区XML)来TabHome。上的色带的ribbongroups然后将添加到现有的家庭色带。

Set the 'ControlId' property (ribbon designer properties) or the idMso (ribbon XML) to TabHome. The ribbongroups on your ribbon will then be added to the existing Home ribbon.

所有其他带状名称的完整列表,可以在 2007 Office系统文件控制标识 的和的 Office 2010的帮助文件:Office Fluent用户界面控件标识符

A complete list of all other ribbon names can be found in 2007 Office System Document: Lists of Control IDs and in Office 2010 Help Files: Office Fluent User Interface Control Identifiers.

这篇关于展望VSTO丝带家园tabControlId的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆