Windows Windows Windows Interface


A collection of Window objects that represent all the available windows.

public interface class Windows : System::Collections::IEnumerable
public interface Windows : System.Collections.IEnumerable
Public Interface Windows
Implements IEnumerable


Use the Windows property of the Application or Document object to return 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 the Add(Object) method or the NewWindow() method to add a new window to the Windows collection.

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.

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.


Application Application Application

Returns a Application object that represents the Microsoft Word application.

Count Count Count

Returns the number of items in the specified collection.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Item[Object] Item[Object] Item[Object]

Returns an individual object in a collection.

Parent Parent Parent

Returns an object that represents the parent object of the specified object.

SyncScrollingSideBySide SyncScrollingSideBySide SyncScrollingSideBySide

True enables scrolling of the contents of windows at the same time. False disables scrolling of windows at the same time.


Add(Object) Add(Object) Add(Object)

Returns a Window object that represents a new window of a document.

Arrange(Object) Arrange(Object) Arrange(Object)

Arranges all open document windows in the application workspace. Because Microsoft Word uses a Single Document Interface (SDI), this method no longer has any effect.

BreakSideBySide() BreakSideBySide() BreakSideBySide()

Ends side-by-side mode if two windows are in side-by-side mode. Returns a Boolean that represents whether the method was successful.

CompareSideBySideWith(Object) CompareSideBySideWith(Object) CompareSideBySideWith(Object)

Opens two windows in side-by-side mode.

GetEnumerator() GetEnumerator() GetEnumerator()
ResetPositionsSideBySide() ResetPositionsSideBySide() ResetPositionsSideBySide()

Resets two document windows that are in the Compare side by side with view mode.

Applies to