VsShellUtilities.GetWindowObject Method

Gets the window that exists in the specified window frame.

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

Syntax

'Declaration
Public Shared Function GetWindowObject ( _
    windowFrame As IVsWindowFrame _
) As Window
public static Window GetWindowObject(
    IVsWindowFrame windowFrame
)
public:
static Window^ GetWindowObject(
    IVsWindowFrame^ windowFrame
)
static member GetWindowObject : 
        windowFrame:IVsWindowFrame -> Window
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

Microsoft.VisualStudio.Shell Namespace