Window.OwnedWindows プロパティ

定義

このウィンドウがオーナー ウィンドウとなっているウィンドウのコレクションを取得します。

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

プロパティ値

WindowCollection

このウィンドウがオーナー ウィンドウとなっているウィンドウへの参照を含む WindowCollection

次の例は、列挙 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

注釈

所有されているウィンドウは、 Owner プロパティが別のウィンドウへの参照を使用して設定されるウィンドウです。これは所有者ウィンドウと呼ばれます。 所有者ウィンドウが所有するすべてのウィンドウを見つけるには、プロパティによって返されるウィンドウをOwnedWindows列挙WindowCollectionできます。

適用対象