开发者

Changing display order in Outlook xml ribbon tabs

Is there a way to change the display order of a custom tab in an Outlook XML ribbon. I know it`s possible with the ribbon designer, but what about ribbons t开发者_如何学JAVAhat are designed in xml. Thanks


Use the "insertBeforeMso" or "insertAfterMso" attributes of the tab element.

<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
  <ribbon>
    <tabs>
      <tab id="MyTab" visible="true" label="MyTab" insertBeforeMso="TabMail">
        <group label="MyGroup" id="MyGroup" autoScale="true">
          <button id="MyButton"
                  size="large"
                  label="Copy Excel Chart"
                  imageMso="HappyFace"
                  onAction="OnMyButtonClick"/>
        </group>
      </tab>
    </tabs>
  </ribbon>
</customUI>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜