Bạn sẽ tìm thấy tất cả các id văn phòng mà bạn muốn trên trang web của microsoft http://www.microsoft.com/en-us/download/details.aspx?id=6627.
Bạn sẽ tìm thấy id của mình trong PowerPointControls.xlsx
tệp.
Đối tạo bạn đơn riêng:
Mở Ribbon.xml bạn
Và thêm sau đây sau khi <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>
Đối với một phím tắt tùy chỉnh addin, tôi nghĩ rằng bạn cần phải thêm một tab mới :
<tab id="YourTab" visible="true" label="Name">
<group id="YourGroup" label="name">
<button onAction="CallAddinsHere();" label="Call add-ins"/>
</group>
</tab>
Nếu bạn muốn tương tác với tùy chỉnh addin phím tắt, có một cái nhìn tại địa chỉ:
Automate Office Ribbon through MSAA (CSOfficeRibbonAccessibility)
này liên quan đến http://stackoverflow.com/questions/28673502/add-standard-command-button-new-slide-to-custom-ribbon- trong văn phòng-add-in –