Gets a reference to the WindowCollection.
Assembly: Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
After you have set a reference to the WindowsCollection class, you can use its properties to access each of the Window objects that it contains.
The WindowsCollection type can be used only to get the count of the Window objects that it contains or to return a reference to a Window object. It cannot be used to add or remove Window objects.
This member can be accessed without restrictions.
This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.
In the following example, the Show method of the MessageBox class is used to display message boxes with the count of windows open (using the Count property) and the caption of the first window in the collection (using the Caption property).