Window Interface

Represents a window.

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

Syntax

'Declaration
<GuidAttribute("00020962-0000-0000-C000-000000000046")> _
Public Interface Window
'Usage
Dim instance As Window
[GuidAttribute("00020962-0000-0000-C000-000000000046")]
public interface Window

Remarks

Many document characteristics, such as scroll bars and rulers, are actually properties of the window. The Window object is a member of the Windows collection. The Windows collection for the Application object contains all the windows in the application, whereas the Windows collection for the Document object contains only the windows that display the specified document.

Use Windows(index), where index is the window name or the index number, to return a single Window object.

The index number is the number to the left of the window name on the Window menu.

Use the Add method or the NewWindow method to add a new window to the Windows collection.

A colon (:) and a number appear in the window caption when more than one window is open for a document.

When you switch the view to print preview, a new window is created. This window is removed from the Windows collection when you close print preview.

See Also

Reference

Window Members

Microsoft.Office.Interop.Word Namespace