问题
I am looking for directions (API reference / samples) to create a insert new page buttons along with Slide number grid view for quick navigation to slides in Powerpoint 2013 and newer additions with an addin
For this I guess we would need the Office JS Api to
i) Read the current number of slides,
ii) Event listeners for add / remove slide
iii) Insert / Duplicate particular slide into presentation
iv) Navigate to particular slide
So, to begin with I started following - https://docs.microsoft.com/en-us/office/dev/add-ins/tutorials/powerpoint-tutorial?view=office-js&tutorial-step=6
But, it only has specifications for navigating to particular elements and not the other features specified above, so are there any APIs with which we can -
i) Read the current number of slides,
ii) Register event listeners for add / remove slide events
iii) Insert / Duplicate particular slide into presentation
iv) Access menu items like Draw / Eraser
回答1:
There are currently no APIs in Office.js that support those scenarios. But these are good ideas. Please suggest them at Office Developer Voice.
来源:https://stackoverflow.com/questions/52463252/office-addin-dev-2016-and-newer-how-to-add-insert-new-page-slide-button-in-th