首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我们可以在由yo office生成的Outlook外接程序中使用PrimaryCommandSurface吗?

我们可以在由yo office生成的Outlook外接程序中使用PrimaryCommandSurface吗?
EN

Stack Overflow用户
提问于 2021-04-23 15:25:43
回答 1查看 289关注 0票数 0

是否有任何方法可以使用PrimaryCommandSurface显示在outlook外接程序开发的顶部丝带上的外接程序,如果是,请帮助更新的有效manifest.xml。

,如果没有其他方法的帮助,如何创建outlook顶级带命令插件

代码语言:javascript
复制
<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>

      <ExtensionPoint xsi:type="ContextMenu">
        <OfficeMenu id="ContextMenuCell">
          <Control xsi:type="Menu" id="ContextMenu2">
                  <!-- information about the control -->
          </Control>
          <!-- other controls, as needed -->
        </OfficeMenu>
        </ExtensionPoint>
EN

回答 1

Stack Overflow用户

发布于 2021-04-24 15:15:31

PrimaryCommandSurface代表办公室里的丝带。在Outlook中,我们处理读取或组合项,因此我们应该对接收到的项使用MessageReadCommandSurface,例如:

代码语言:javascript
复制
<ExtensionPoint xsi:type="MessageReadCommandSurface">
  <OfficeTab id="TabDefault">
        <-- OfficeTab Definition -->
  </OfficeTab>
</ExtensionPoint>

TabDefault是Outlook中内置选项卡的idMso值。

此外,您还可以通过以下方式将控件放置到自定义选项卡中:

代码语言:javascript
复制
<ExtensionPoint xsi:type="MessageReadCommandSurface">
  <CustomTab id="TabCustom1">
        <-- CustomTab Definition -->
  </CustomTab>
</ExtensionPoint>

如果需要为Outlook中的组合项显示带状UI,则需要使用MessageComposeCommandSurface扩展点,该扩展点使用邮件撰写表单在带状上放置按钮以进行外接程序:

代码语言:javascript
复制
<ExtensionPoint xsi:type="MessageComposeCommandSurface">
  <OfficeTab id="TabDefault">
        <-- OfficeTab Definition -->
  </OfficeTab>
</ExtensionPoint>

并将控件放置到自定义选项卡中:

代码语言:javascript
复制
<ExtensionPoint xsi:type="MessageComposeCommandSurface">
  <CustomTab id="TabCustom1">
        <-- CustomTab Definition -->
  </CustomTab>
</ExtensionPoint>

有关更多信息,请参见ExtensionPoint元素

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67232734

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档