Edit

Share via


_Application2.Windows Property

Definition

Gets a reference to the WindowsCollection collection.

public:
 property Microsoft::Office::Interop::InfoPath::SemiTrust::WindowsCollection ^ Windows { Microsoft::Office::Interop::InfoPath::SemiTrust::WindowsCollection ^ get(); };
public Microsoft.Office.Interop.InfoPath.SemiTrust.WindowsCollection Windows { get; }
member this.Windows : Microsoft.Office.Interop.InfoPath.SemiTrust.WindowsCollection
Public ReadOnly Property Windows As WindowsCollection

Property Value

Implements

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.<span class="label">Windows</span>.Count);

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.

Applies to