Proprietà Windows.Count
Ottiene il numero di oggetti WindowObject inclusi nell'insieme WindowsCollection.
Questa proprietà non è compatibile con CLS.
Spazio dei nomi: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in microsoft.office.interop.infopath.semitrust.dll)
Sintassi
<DispIdAttribute(1)> _
ReadOnly Property Count As Integer
Dim instance As Windows
Dim value As Integer
value = instance.Count
[DispIdAttribute(1)]
int Count { get; }
Osservazioni
![]() |
---|
Non vi sono restrizioni per l'accesso a questo membro. |
Esempio
Nell'esempio seguente, la proprietà Count viene utilizzata in un ciclo for per eseguire un'iterazione nell'insieme di oggetti Window e visualizzare una finestra di messaggio con il valore relativo al tipo di finestra:
for (int i=0; i < thisApplication.Windows.Count; i++)
{
thisXDocument.UI.Alert("Window type: " + thisApplication.Windows[i].WindowType);
}
Vedere anche
Riferimenti
Interfaccia Windows
Membri Windows
Spazio dei nomi Microsoft.Office.Interop.InfoPath.SemiTrust