VsShellUtilities.GetWindowObject Method

Gets the window that exists in the specified window frame.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'Declaration
Public Shared Function GetWindowObject ( _
    windowFrame As IVsWindowFrame _
) As Window
'Usage
Dim windowFrame As IVsWindowFrame 
Dim returnValue As Window 

returnValue = VsShellUtilities.GetWindowObject(windowFrame)
public static Window GetWindowObject(
    IVsWindowFrame windowFrame
)
public:
static Window^ GetWindowObject(
    IVsWindowFrame^ windowFrame
)
public static function GetWindowObject(
    windowFrame : IVsWindowFrame
) : Window

Parameters

Return Value

Type: EnvDTE.Window
The Window, if there is an object of that type in the frame; otherwise, null.

.NET Framework Security

See Also

Reference

VsShellUtilities Class

VsShellUtilities Members

Microsoft.VisualStudio.Shell Namespace