How to add a button to a pre-existing tab on ribbon (C#)?

前端 未结 4 1799
感情败类
感情败类 2021-02-20 04:22

I\'ve successfully created a new tab and put it next to the pre-existing ones. Then I realized that I\'ll only have one button on it, so it makes more sense (for now) to put it

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-20 04:51

    The attribute idMso is correct, but the id for the tab you want is TabMail. You can find a packed set of Excel-files containing lists of Office 2010 control IDs on MSDN. Then, as mentioned in a comment to the question, your sample XML may be missing the customUI and ribbon-tags. (Disclaimer: I haven't customized the ribbon in Outlook, only Word, Excel and PowerPoint, but I would guess they work the same?)

    Try something like the this:

    
    
        
            
                
                    
                        
                    
                
            
        
    
    

提交回复
热议问题