Düzenle

Aracılığıyla paylaş


Windows.Count Property

Definition

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

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

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