我希望获取类似于PowerPoint选项 -> 自定义功能区 -> 所有命令中的控件列表,以涵盖PowerPoint 2010功能区的所有控件。
此外,我想要从自定义Add-ins与功能区快捷方式进行交互。
此外,我想要从自定义Add-ins与功能区快捷方式进行交互。
PowerPointControls.xlsx
的文件中找到您的 ID。<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>
对于自定义插件的快捷键,我认为您需要添加一个新的选项卡:
<tab id="YourTab" visible="true" label="Name">
<group id="YourGroup" label="name">
<button onAction="CallAddinsHere();" label="Call add-ins"/>
</group>
</tab>