嵌入式附件的Outlook 2010上下文菜单-idMso? [英] Outlook 2010 Context Menu For Embedded Attachments - idMso?

查看:214
本文介绍了嵌入式附件的Outlook 2010上下文菜单-idMso?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Otlook 2010加载项,目前正在自定义Ribbon UI.到目前为止,还不错,但是我对于为邮件中的嵌入式对象自定义上下文菜单存在一个问题.我尝试了许多 idMso 上下文菜单,但没有一个起作用.

I am working on Otlook 2010 add-in and currently customizing Ribbon UI. So far so good, but I have one problem with customizing context menu for embedded objects in mails. I have tried many idMso context menus, but none of them is working.

有人有没有下面的上下文菜单中的idMso 如何在其中添加新按钮的经历?

Do anyone have experience which idMso is context menu shown below or how to add new button there?

我的custom-ribbon.xml示例:

Sample of my custom-ribbon.xml:

<?xml version="1.0" encoding="utf-8"?>
<customUI onLoad="OnRibbonLoad" xmlns="http://schemas.microsoft.com/office/2009/07/customui">
  <contextMenus>
    <contextMenu idMso="ContextMenuText">
      <button id="MyContextMenuText"
              imageMso="HappyFace"
              label="ContextMenuAttachments"
              onAction="OnMyButtonClick" />
    </contextMenu>
  </contextMenus>
</customUI>

推荐答案

您的xml看起来不错.但是根据您单击的内容,会显示一个不同的上下文菜单.

Your xml seems fine. But depending on what you click, there is a different context menu showing up.

ContextMenuText是右键单击显示的上下文菜单 编写或编辑电子邮件时.

The ContextMenuText is the context menu which shows up on right click when writing or editing email.

ContextMenuPicture是右键单击图片的上下文菜单.

ContextMenuPicture is the context menu for right click on a picture.

以此类推.

Office 2010的上下文菜单加载项使用此加载项可帮助确定上下文菜单名称.安装后,上下文菜单名称将显示在菜单底部.

ContextMenus Add-In for Office 2010 Use this add-in to help determine the context menu names. After install the context menu name appears on the bottom of the menu.

还要确保在ThisAddIn.cs文件中,您已覆盖以下方法

Also make sure in the ThisAddIn.cs file, you have overridden the following method

protected override Office.IRibbonExtensibility CreateRibbonExtensibilityObject()
{
    return new Ribbon1();
} 

这篇关于嵌入式附件的Outlook 2010上下文菜单-idMso?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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