Can't find the list of most (all?) tab names for the ribbon in Office

一世执手 提交于 2019-12-05 01:18:33

问题


After some heavy googling, I've concluded that I'm unable to locate information on the id names for the different components of the ribbon in Office.

For instance, even though the following XML works, I need to hide the add-in error display due to TabMail being at fault when a new email is being created. It's my understand that it's because I currently target all windows in Outlook but should be only targeting the main one. When a new email is being created, my add-in tries to insert itself in there too failing and complaining.

<ribbon>
  <tabs>
    <tab idMso="TabMail">
      <group id="Animals" label="Animal group">
        <splitButton id="MainSplitButton" size="large">
          <button id="Donkey"
                  label="Donkey me"
                  getImage="GetImage"
                  showImage="true"
                  onAction="Donkey_Click"/>
          ...
  • Where can I find the list of all (or at least the most common) tab and group names?
  • Or at least, what to google for (apparently my searches weren't based on words distinctive enough)?

While preferring the digital information, I'd be willing to purchase some literature covering Office add-in development. Even on that subject my search was inconclusive (many hits, no one of which feeling like the right stuff.)


回答1:


For Office 2007 see this link, for Office 2010 Fluent UI click here and the 2013 version is here.

I also didn't find much good literature, but there is tons of posts on forums and since I work for Excel only (which has quite a good developer community) I settled with that.




回答2:


If you are looking documentation for using Ribbon callbacks here you go

For Office 2007

http://msdn.microsoft.com/en-us/library/office/aa338199(v=office.12).aspx http://msdn.microsoft.com/en-us/library/office/aa722523(v=office.12).aspx

For Office 2010

http://msdn.microsoft.com/en-us/library/ee691833(v=office.14).aspx



来源:https://stackoverflow.com/questions/16520114/cant-find-the-list-of-most-all-tab-names-for-the-ribbon-in-office

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!