Compartilhar via


Window.LinkedWindowFrame Property

Definition

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

public:
 property EnvDTE::Window ^ LinkedWindowFrame { EnvDTE::Window ^ get(); };
public:
 property EnvDTE::Window ^ LinkedWindowFrame { EnvDTE::Window ^ get(); };
[System.Runtime.InteropServices.DispId(117)]
public EnvDTE.Window LinkedWindowFrame { [System.Runtime.InteropServices.DispId(117)] get; }
[<System.Runtime.InteropServices.DispId(117)>]
[<get: System.Runtime.InteropServices.DispId(117)>]
member this.LinkedWindowFrame : EnvDTE.Window
Public ReadOnly Property LinkedWindowFrame As Window

Property Value

A Window object.

Attributes

Examples

[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  

Remarks

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.

Applies to