WindowCollection Class
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

WindowCollection Class

Contains a Window object for each InfoPath window that is currently open.


Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

public abstract class WindowCollection : IEnumerable

Window objects represent the two types of windows that are used in the InfoPath application: the editing window that displays a form when a user fills out a form, and the designing window that is used in design mode when a user designs a form template.

The WindowCollection collection implements properties that can be used to access a form's associated Window objects, and it is accessible through the Windows property of the Application object


The WindowCollection collection can be used only to get the count of Window objects that it contains or to return a reference to a specified Window object. It cannot be used to create, add, or remove Window objects.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2016 Microsoft