Windows.Count Property

Definition

Gets a count of the number of WindowObject objects contained in the WindowsCollection collection.

C#
public int Count { get; }

Property Value

Examples

In the following example, the Count property is used within a for loop to iterate through the collection of Window objects and display a message box indicating the window type value:

for (int i=0; i &lt; thisApplication.Windows.<span class="label">Count</span>; i++)
{
 thisXDocument.UI.Alert("Window type: " + thisApplication.Windows[i].WindowType);
}

Applies to

Produkt Verzie
InfoPath form templates Latest