Get the identifiers of all Office 2010 ribbon controls and interact with the ribbon shortcut from custom add-ins

I want to get a list of all the controls in the powerpoint 2010 ribbon, as in the powerpoint option β†’ configure ribbon-> all commands.

Also, I want to interact with the ribbon label from custom add-ons

+8
powerpoint vsto add-in ribbonx
source share
1 answer

You will find all the office ID that you want on the Microsoft website http://www.microsoft.com/en-us/download/details.aspx?id=6627 .

You will find your identifier in the PowerPointControls.xlsx file.

To create your own menu:

Open your Ribbon.xml

And add the following after <ribbon>

 <tabs> <tab idMso="TabAddIns"> <group id="ContentGroup" label="Content"> <button id="textButton" label="Insert Text" screentip="Text" onAction="OnTextButton" supertip="Inserts text at the cursor location."/> <button id="tableButton" label="Insert Table" screentip="Table" onAction="OnTableButton" supertip="Inserts a table at the cursor location."/> </group> </tab> </tabs> 

For a custom addin shortcut, I think you need to add a new tab:

 <tab id="YourTab" visible="true" label="Name"> <group id="YourGroup" label="name"> <button onAction="CallAddinsHere();" label="Call add-ins"/> </group> </tab> 

If you want to interact with the custom addin shortcut, look:

Office Automated Tape through MSAA (CSOfficeRibbonAccessibility)

+6
source share

All Articles