Share via


Window.LinkedWindowFrame Property

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

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

Syntax

'Declaration
ReadOnly Property LinkedWindowFrame As Window
Window LinkedWindowFrame { get; }
property Window^ LinkedWindowFrame {
    Window^ get ();
}
abstract LinkedWindowFrame : Window
function get LinkedWindowFrame () : Window

Property Value

Type: EnvDTE.Window
A Window object.

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.

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

.NET Framework Security

See Also

Reference

Window Interface

EnvDTE Namespace