office addin dev 2016 及更高版本:如何在任务窗格应用程序中添加插入新页面/幻灯片按钮 [英] office addin dev 2016 and newer: how to add insert new page / slide button in the task pane app

查看:72
本文介绍了office addin dev 2016 及更高版本:如何在任务窗格应用程序中添加插入新页面/幻灯片按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找方向(API 参考/示例)创建一个插入新页面按钮以及幻灯片编号网格视图,用于快速导航到 Powerpoint 2013 中的幻灯片以及带有插件的更新内容

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

为此,我想我们需要 Office JS Api

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

所以,首先我开始关注 - https://docs.microsoft.com/en-us/office/dev/add-ins/tutorials/powerpoint-tutorial?view=office-js&tutorial-步骤=6

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

但是,它只有导航到特定元素的规范,而不是上面指定的其他功能,所以我们可以使用任何 API -

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

推荐答案

目前 Office.js 中没有支持这些方案的 API.但这些都是好主意.请在 Office 开发者之声上提出建议.

There are currently no APIs in Office.js that support those scenarios. But these are good ideas. Please suggest them at Office Developer Voice.

这篇关于office addin dev 2016 及更高版本:如何在任务窗格应用程序中添加插入新页面/幻灯片按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆