Skip to content

放映窗口(SlideShowWindow)

代表幻灯片放映窗口

属性列表

属性说明
设置全屏

IsFullScreen

设置全屏

语法

表达式.ActivePresentation.SlideShowWindow.IsFullScreen

表达式:文档类型应用对象

示例

js
//@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)
}