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 할 수 있습니다.

적용 대상