편집

다음을 통해 공유


Windows Interface

Definition

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

public interface class Windows : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00020961-0000-0000-C000-000000000046")]
public interface Windows : System.Collections.IEnumerable
type Windows = interface
    interface IEnumerable
Public Interface Windows
Implements IEnumerable
Attributes
Implements

Remarks

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.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Count

Returns the number of items in the specified collection.

Creator

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

Item[Object]

Returns an individual object in a collection.

Parent

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

SyncScrollingSideBySide

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

Methods

Add(Object)

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

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()

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)

Opens two windows in side-by-side mode.

GetEnumerator()
ResetPositionsSideBySide()

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

Applies to