Rok*_*_13 9 .net powerpoint vsto add-in ribbonx
我想获得powerpoint 2010功能区中的所有控件列表,如powerpoint选项中的那个 - >自定义功能区 - >所有命令.
此外,我想与自定义加载项的功能区快捷方式进行交互
您将在microsoft网站http://www.microsoft.com/en-us/download/details.aspx?id=6627上找到所需的所有办公室ID .
你会在PowerPointControls.xlsx文件中找到你的id .
为了创建你自己的菜单:
打开Ribbon.xml
然后添加以下内容 <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>
Run Code Online (Sandbox Code Playgroud)
对于自定义插件快捷方式,我认为您必须添加一个新标签:
<tab id="YourTab" visible="true" label="Name">
<group id="YourGroup" label="name">
<button onAction="CallAddinsHere();" label="Call add-ins"/>
</group>
</tab>
Run Code Online (Sandbox Code Playgroud)
如果您想与自定义插件快捷方式进行交互,请查看:
通过MSAA自动化Office功能区(CSOfficeRibbonAccessibility)