Window.OwnedWindows 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 collection de fenêtres pour lesquelles cette fenêtre est le propriétaire.
public:
property System::Windows::WindowCollection ^ OwnedWindows { System::Windows::WindowCollection ^ get(); };
public System.Windows.WindowCollection OwnedWindows { get; }
member this.OwnedWindows : System.Windows.WindowCollection
Public ReadOnly Property OwnedWindows As WindowCollection
Valeur de propriété
Qui WindowCollection contient des références aux fenêtres pour lesquelles cette fenêtre est le propriétaire.
Exemples
L’exemple suivant montre comment énumérer OwnedWindows.
foreach (Window ownedWindow in this.OwnedWindows)
{
Console.WriteLine(ownedWindow.Title);
}
For Each ownedWindow As Window In Me.OwnedWindows
Console.WriteLine(ownedWindow.Title)
Next ownedWindow
Remarques
Une fenêtre appartenant est une fenêtre dont Owner la propriété est définie avec une référence à une autre fenêtre, appelée fenêtre propriétaire. Pour rechercher toutes les fenêtres propriétaires d’une fenêtre propriétaire, vous pouvez énumérer WindowCollection ce qui est retourné par la OwnedWindows propriété.