DocumentWindows Interface

A collection of all the DocumentWindow objects that are currently open in Microsoft Office PowerPoint. This collection doesn't include open slide show windows, which are included in the SlideShowWindows collection.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
<GuidAttribute("91493455-5A91-11CF-8700-00AA0060263B")> _
Public Interface DocumentWindows _
    Inherits Collection
'Usage
Dim instance As DocumentWindows
[GuidAttribute("91493455-5A91-11CF-8700-00AA0060263B")]
public interface DocumentWindows : Collection

Examples

Use the Windows property to return the DocumentWindows collection. The following example tiles the open document windows.

Windows.Arrange ppArrangeTiled

Use the NewWindow() method to create a document window and add it to the DocumentWindows collection. The following example creates a new window for the active presentation.

ActivePresentation.NewWindow

Use Windows(index), where index is the window index number, to return a single DocumentWindow object. The following example closes document window two.

Windows(2).Close

See Also

Reference

DocumentWindows Members

Microsoft.Office.Interop.PowerPoint Namespace