次の方法で共有


Windows.Count Property

Gets a count of the number of WindowObject objects contained in 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 Count As Integer
    Get
'Usage
Dim instance As Windows
Dim value As Integer

value = instance.Count
int Count { get; }

Property Value

Type: System.Int32

Remarks

Important

This member can be accessed without restrictions.

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 < thisApplication.Windows.Count; i++)
{
 thisXDocument.UI.Alert("Window type: " + thisApplication.Windows[i].WindowType);
}

See Also

Reference

Windows Interface

Windows Members

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace