_Application3.Windows Propriété

Définition

Obtient une référence à la WindowsCollection collection.

public:
 property Microsoft::Office::Interop::InfoPath::SemiTrust::WindowsCollection ^ Windows { Microsoft::Office::Interop::InfoPath::SemiTrust::WindowsCollection ^ get(); };
public Microsoft.Office.Interop.InfoPath.SemiTrust.WindowsCollection Windows { get; }
member this.Windows : Microsoft.Office.Interop.InfoPath.SemiTrust.WindowsCollection
Public ReadOnly Property Windows As WindowsCollection

Valeur de propriété

Implémente

Exemples

Dans l’exemple suivant, la propriété Windows est utilisée pour accéder à la Count propriété de la WindowsCollection collection et afficher la valeur dans une boîte de message :

thisXDocument.UI.Alert("Count of Windows: " + 
   thisApplication.<span class="label">Windows</span>.Count);
thisXDocument.UI.Alert("Count of Windows: " &amp; _
   thisApplication.<span class="label">Windows</span>.Count)

Dans l’exemple suivant, la propriété Windows est utilisée pour accéder à la Count propriété de la WindowsCollection collection et afficher la valeur dans une boîte de message :

thisXDocument.UI.Alert("Count of Windows: " + 
   thisApplication.<span class="label">Windows</span>.Count);
thisXDocument.UI.Alert("Count of Windows: " &amp; _
   thisApplication.<span class="label">Windows</span>.Count)

Remarques

Après avoir défini une référence à la collection Windows, vous pouvez utiliser ses propriétés pour accéder à chacun des objets Window qu'elle contient.

Remarque : La collection Windows ne peut être utilisée que pour obtenir le nombre d’objets Window qu’elle contient ou pour renvoyer une référence à un objet Window . Il ne peut pas être utilisé pour ajouter ou supprimer des objets Window.

Important : ce membre est accessible sans restrictions.

S’applique à