WindowCollection.Item[Int32] Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient une référence à l’objet spécifié Window dans l’objet WindowCollection .
public:
abstract property Microsoft::Office::InfoPath::Window ^ default[int] { Microsoft::Office::InfoPath::Window ^ get(int index); };
public abstract Microsoft.Office.InfoPath.Window this[int index] { get; }
member this.Item(int) : Microsoft.Office.InfoPath.Window
Default Public MustOverride ReadOnly Property Item(index As Integer) As Window
Paramètres
- index
- Int32
L'index de base 0 de l'objet Window à renvoyer.
Valeur de propriété
Objet Window de l’objet WindowCollection qui correspond à la valeur d’index spécifiée.
Exemples
La propriété Item étant la propriété par défaut de la classe WindowsCollection, elle peut être utilisée comme suit :
Window firstWindow = this.Application.Windows[0];
Dim firstWindow As Window = Me.Application.Windows(0)
Remarques
La valeur passée pour le index
paramètre doit être un nombre compris entre 0 et la valeur de la propriété de Count la collection moins 1.
Une fois que vous avez défini une référence à l’objet Window retourné par la propriété Item , vous pouvez accéder à l’une de ses propriétés et méthodes.
Vous pouvez accéder à ce membre sans restrictions.
Vous pouvez uniquement accéder à ce type ou à ce membre à partir du code exécuté dans les formulaires ouverts dans Microsoft InfoPath Filler.