_Application3.Windows Property
Gets a reference to the WindowsCollection collection.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)
Syntax
'Declaration
'Usage
Property Value
A reference to the WindowsCollection collection.
Remarks
After you have set a reference to the Windows collection, you can use its properties to access each of the Window objects that it contains.
Note
The Windows collection 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.
Example
In the following example, the Windows property is used to access the Count property of the WindowsCollection collection and display the value in a message box:
thisXDocument.UI.Alert("Count of Windows: " + thisApplication.Windows.Count);
See Also
Reference
_Application3 Interface
_Application3 Members
Microsoft.Office.Interop.InfoPath Namespace