VsShellUtilities.GetWindowObject(IVsWindowFrame) 方法

定义

获取存在于指定窗口框架中的窗口。

public:
 static EnvDTE::Window ^ GetWindowObject(Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ windowFrame);
public:
 static EnvDTE::Window ^ GetWindowObject(Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ windowFrame);
 static EnvDTE::Window GetWindowObject(Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame const & windowFrame);
public static EnvDTE.Window GetWindowObject (Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame windowFrame);
static member GetWindowObject : Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame -> EnvDTE.Window
Public Shared Function GetWindowObject (windowFrame As IVsWindowFrame) As Window
Public Function GetWindowObject (windowFrame As IVsWindowFrame) As Window

参数

windowFrame
IVsWindowFrame

窗口框架。

返回

Window

如果成功,则为对窗口 interaface 的引用。 否则为 null。

适用于