Edytuj

Udostępnij za pośrednictwem


Windows Interface

Definition

A collection of all the Window objects in Microsoft Excel.

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

Remarks

The Windows collection returned by the Windows property of the Application object contains all the windows in the application, whereas the Windows collection returned by the Windows property of the Workbook object contains only the windows in the specified workbook.

Use the NewWindow method of a Window or Workbook object to create a new window and add it to the collection.

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

Note that the active window is always Windows(1).

Properties

_Default[Object]

Reserved for internal use.

Application

Returns an Application object that represents the Microsoft Excel application.

Count

Returns the number of objects in the collection.

Creator

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

Item[Object]

Returns a single object from a collection.

Parent

Returns the parent object for the specified object.

SyncScrollingSideBySide

True enables scrolling the contents of windows at the same time when documents are being compared side by side. False disables scrolling the windows at the same time.

Methods

Arrange(XlArrangeStyle, Object, Object, Object)

Arranges the windows on the screen.

BreakSideBySide()

Ends side-by-side mode if two windows are in side-by-side mode.

CompareSideBySideWith(Object)

Opens two windows in side-by-side mode.

GetEnumerator()
ResetPositionsSideBySide()

Resets the position of two worksheet windows that are being compared side by side.

Applies to