Window::LinkedWindowFrame Property

 

Gets a Window object representing the window frame containing the window.

Namespace:   EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

property Window^ LinkedWindowFrame {
	Window^ get();
}

Property Value

Type: EnvDTE::Window^

A Window object.

Note that if the window is docked to the side of the main window, then the LinkedWindowFrame is the same object as the main environment window.

If the window is not linked, is of type LinkedWindowFrame, hidden, or is a document, then LinkedWindowFrame returns Nothing. Hidden windows are not considered linked because they are not in a window frame.

[Visual Basic]

Sub LinkedWindowFrameExample()
   Dim Frame As Window
   Dim w1 As Window = _
   DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer)
   Dim w2 As Window = DTE.Windows.Item(Constants.vsWindowKindOutput)

   ' Create a linked window frame and dock Solution Explorer 
   ' and the Ouput window together inside it.
   Frame = DTE.Windows.CreateLinkedWindowFrame(w1, w2, _
   vsLinkedWindowType.vsLinkedWindowTypeDocked)
   Frame.LinkedWindows.Item(1).LinkedWindowFrame.Activate()
End Sub
Return to top
Show: