Share via


_Application3.Windows property

Gets a reference to the WindowsCollection collection.

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

Syntax

'Declaration
ReadOnly Property Windows As WindowsCollection
    Get
'Usage
Dim instance As _Application3
Dim value As WindowsCollection

value = instance.Windows
WindowsCollection Windows { get; }

Property value

Type: Microsoft.Office.Interop.InfoPath.SemiTrust.WindowsCollection

Implements

_Application2.Windows
_Application.Windows

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.

Important

This member can be accessed without restrictions.

Examples

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);
thisXDocument.UI.Alert("Count of Windows: " & _
   thisApplication.Windows.Count)

See also

Reference

_Application3 interface

_Application3 members

Windows overload

Microsoft.Office.Interop.InfoPath.SemiTrust namespace