Share via


VsShellUtilities.GetWindowObject Method

Gets the window that exists in the specified window frame.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

‘선언
Public Shared Function GetWindowObject ( _
    windowFrame As IVsWindowFrame _
) As Window
‘사용 방법
Dim windowFrame As IVsWindowFrame
Dim returnValue As Window

returnValue = VsShellUtilities.GetWindowObject(windowFrame)
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

VsShellUtilities Members

Microsoft.VisualStudio.Shell Namespace