主题
放映窗口
SlideShowWindow
代表幻灯片放映窗口
语法
表达式.ActivePresentation.SlideShowWindow
表达式:文档类型应用对象
示例
//@file=base.pptx
async function example() {
await instance.ready()
const app = instance.Application
// 演示文稿对象
const presentation = await app.ActivePresentation
// 代表幻灯片放映窗口
const slideShowWindow = await presentation.SlideShowWindow
}
IsFullScreen
JSSDK: v1.1.10+、WebOffice v1.67.1+ 支持
设置全屏
语法
表达式.ActivePresentation.SlideShowWindow.IsFullScreen
表达式:文档类型应用对象
示例
//@file=base.ppt
async function example() {
await instance.ready()
const app = instance.Application
// 窗口对象
const SlideShowWindow = await app.ActivePresentation.SlideShowWindow
// 设置全屏
SlideShowWindow.IsFullScreen = true
setTimeout(() => {
// 退出全屏
SlideShowWindow.IsFullScreen = false
}, 3000)
}