Add standard command button “New Slide” to custom ribbon in office add-in

前端 未结 5 1232
盖世英雄少女心
盖世英雄少女心 2021-01-27 17:59

I have created my customized ribbon in an addIn. Now I would like to add the New Slide command that exist in home screen (see screenshot below)

5条回答
  •  旧巷少年郎
    2021-01-27 18:17

    As explained by Franz the solution is to use the idMso. For the New Slide command you are looking for, if you look at MSN in the idMso Table for "New Slide" you will find two entries. The one you are looking for is a Gallery with idMso=SlideNewGallery. (not a button). You can add it in the XML. I like to use the Ribbon Editor. With the Ribbon Editor it looks like this:

    And in the Add-In it looks then like this:

    The CustomUI XML relevant part looks like this

                
            
            

提交回复
热议问题