WindowCollection.Count, propriété
Obtient le nombre d'objets Window que contient la collection WindowCollection.
Espace de noms : Microsoft.Office.InfoPath
Assembly : Microsoft.Office.InfoPath (dans Microsoft.Office.InfoPath.dll)
Syntaxe
'Déclaration
Public MustOverride ReadOnly Property Count As Integer
Get
'Utilisation
Dim instance As WindowCollection
Dim value As Integer
value = instance.Count
public abstract int Count { get; }
Valeur de la propriété
Type : System.Int32
Nombre d'objets Window contenus dans la collection WindowCollection.
Remarques
Ce membre est accessible sans restrictions.
Ce type ou ce membre est accessible uniquement à partir du code exécuté dans les formulaires ouverts dans Microsoft InfoPath Filler.
Exemples
L'exemple suivant définit une variable pour le nombre de fenêtres de la collection WindowCollection.
int windowCount = this.Application.Windows.Count;
Dim windowCount As Integer = Me.Application.Windows.Count