首页 > 解决方案 > 如何在“新邮件”按钮附近为 Outlook-Addin 创建一个复选框

问题描述

我想在发送按钮附近为“新邮件”创建一个复选框。

在此处输入图像描述

这是我的 CustomUI.xml 代码。

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
  <ribbon>
    <tabs>
      <tab idMso="TabAddIns">
        <group id="grpTabAddIns"
               label="E-Mail2">
          <button id="btnEinstellungenOeffnen"
                  label="Einstellungen"
                  getImage="GetImage"
                  showImage="true"
                  size="large"
                  supertip="Abrufen und Ändern der Einstellungen des E-Mail2 Add-Ins"
                  onAction="btnEinstellungenOeffnen_Click"/>
        </group>
      </tab>
    </tabs>
  </ribbon>
  <contextMenus>
    <contextMenu idMso="ContextMenuMailItem">
      <button id="btnZuordnungContextMenu"
              label=" Zuordnung erstellen/ändern"
              getImage="GetImage"
              showImage="true"
              supertip=" Zuordnung erstellen/ändern"
              onAction="btnZuordnung_Click"/>
    </contextMenu>
  </contextMenus>
</customUI>

是否可以在黄色的地方设置一个复选框?

标签: c#checkboxoutlook

解决方案


不它不是。功能区 UI 位于撰写区域的顶部。您可以在那里放置您的自定义 UI。

但是,您可以考虑将默认 Outlook 的 UI 替换为您自己的表单,您可以在其中自行放置 To、CC、BCC 和其他字段,只保留功能区 UI。Outlook 表单区域提供全部替换布局,该布局将整个 Outlook 表单替换为表单区域。

此外,您可以考虑使用Add-in Express 提供的Advanced Outlook 视图和表单区域。


推荐阅读