Window2.LinkedWindowFrame Eigenschaft

Definition

Ruft ein Window-Objekt ab, das den Fensterrahmen darstellt, der das Fenster enthält.

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

Eigenschaftswert

Window

Ein Window-Objekt.

Implementiert

Attribute

Beispiele

In diesem Beispiel wird ein verknüpfter Fensterrahmen erstellt, der Ausgabefenster und Projektmappen-Explorer dem verknüpften Frame als vertikale Fenster hinzugefügt, der verknüpfte Fensterrahmen aktiviert und dann die Fenster vom Frame entfernt.

Imports EnvDTE  
Imports EnvDTE80  
Sub LinkedWindowFrameExample(ByVal dte As DTE2)  
    Dim Frame As Window2  
    Dim w1 As Window2 = _  
    CType(dte.Windows.Item _  
(Constants.vsWindowKindSolutionExplorer),Window2)  
     Dim w2 As Window2 = CType(dte.Windows.Item _  
(Constants.vsWindowKindOutput), Window2)  
    ' Create a linked window frame and dock Solution Explorer   
    ' and the Ouput window together inside it.  
    Frame = Ctype(dte.Windows.CreateLinkedWindowFrame(w1, w2, _  
    vsLinkedWindowType.vsLinkedWindowTypeVertical), Window2)  
    MsgBox("Activating the linked window frame...")  
    Frame.LinkedWindows.Item(1).LinkedWindowFrame.Activate()  
    MsgBox("Removing Solution Explorer from the linked frame...")  
    Frame.LinkedWindows.Remove(w1)  
    MsgBox("Removing the Output window from the linked frame...")  
    Frame.LinkedWindows.Remove(w2)  
End Sub  
using EnvDTE;  
using EnvDTE80;  
using System.Windows.Forms;  
public void LinkedWindowFrameExample(DTE2 dte)  
{  
    Window2 w1 = (Window2)_applicationObject.Windows.Item  
(Constants.vsWindowKindSolutionExplorer);  
    Window2 w2 = (Window2)_applicationObject.Windows.Item  
(Constants.vsWindowKindOutput);  
    Window2 Frame =   
(Window2)_applicationObject.Windows.CreateLinkedWindowFrame  
(w1, w2, vsLinkedWindowType.vsLinkedWindowTypeVertical);  
    MessageBox.Show("Activating the linked window frame...");  
    Frame.LinkedWindows.Item(1).LinkedWindowFrame.Activate();  
    MessageBox.Show("Removing Solution Explorer   
from the linked frame...");  
    Frame.LinkedWindows.Remove(w1);  
    MessageBox.Show("Removing the Output window from the   
linked frame...");  
    Frame.LinkedWindows.Remove(w2);  
}  

Hinweise

Beachten Sie Folgendes: Wenn das Fenster an die Seite des Hauptfensters angedockt ist, LinkedWindowFrame ist das dasselbe Objekt wie das Hauptfenster der Umgebung.

Wenn das Fenster nicht verknüpft ist, vom Typ ist LinkedWindowFrame , ausgeblendet ist, oder ein Dokument ist, wird LinkedWindowFrame zurückgegeben Nothing . Verborgene Fenster werden nicht als verknüpft betrachtet, weil Sie sich nicht in einem Fensterrahmen befinden.

Gilt für