DocumentWindows 集合对象

         
多个对象
DocumentWindows (DocumentWindow)
Presentation
Selection
View

在 PowerPoint 中,所有当前打开的 DocumentWindow 对象的集合。该集合不包含打开的幻灯片放映窗口,这些窗口包含在 SlideShowWindows 集合中。

使用 DocumentWindows 集合

使用 Windows 属性返回 DocumentWindows 集合。以下示例平铺打开的文档窗口。

Windows.Arrange ppArrangeTiled

使用 NewWindow 方法创建一个文档窗口并将其添加到 DocumentWindows 集合中。以下示例为当前演示文稿新建一个窗口。

ActivePresentation.NewWindow

使用 Windows(index) 返回单个 DocumentWindow 对象,其中 index 是窗口索引号。以下示例关闭第二个文档窗口。

Windows(2).Close