Application.Windows Property

InfoPath Developer Reference

A read-only property that returns a reference to the Windows collection. Read-only

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.Windows

expression   An expression that returns a Application object.

Return Value
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.

Bb250914.vs_note(en-us,office.12).gif  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.

Security Level 0: Can be accessed without restrictions.

Example

In the following example, the Windows property is used to access the Count property of the Windows collection and display the value in a message box:

JScript
  XDocument.UI.Alert("Count of Windows: " + Application.Windows.Count);

See Also