WindowHelper.GetHwndFromUIElement 方法

从指定的 UI 元素获取窗口句柄。

命名空间:  Microsoft.Internal.VisualStudio.PlatformUI
程序集:  Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)

语法

声明
Public Shared Function GetHwndFromUIElement ( _
    element As IVsUIElement, _
    parent As IntPtr _
) As IntPtr
public static IntPtr GetHwndFromUIElement(
    IVsUIElement element,
    IntPtr parent
)

参数

返回值

类型:System.IntPtr
窗口句柄。

.NET Framework 安全性

请参见

参考

WindowHelper 类

Microsoft.Internal.VisualStudio.PlatformUI 命名空间