Share via


Window.LinkedWindowFrame, propriété

Obtient un objet Window représentant le frame de fenêtre qui contient la fenêtre.

Espace de noms :  EnvDTE
Assembly :  EnvDTE (dans EnvDTE.dll)

Syntaxe

'Déclaration
ReadOnly Property LinkedWindowFrame As Window
    Get
Window LinkedWindowFrame { get; }
property Window^ LinkedWindowFrame {
    Window^ get ();
}
abstract LinkedWindowFrame : Window
function get LinkedWindowFrame () : Window

Valeur de propriété

Type : EnvDTE.Window
Objet Window.

Notes

Si la fenêtre est ancrée au bord de la fenêtre principale, LinkedWindowFrame est le même objet que la fenêtre d'environnement principale.

Si la fenêtre n'est pas liée, qu'il s'agisse d'une fenêtre de document, d'une fenêtre masquée ou d'une fenêtre de type LinkedWindowFrame,LinkedWindowFrame retourne Nothing. Les fenêtres masquées ne sont pas considérées comme liées car elles ne sont pas dans un frame de fenêtre.

Exemples

[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

Sécurité .NET Framework

Voir aussi

Référence

Window Interface

EnvDTE, espace de noms