共用方式為


WindowHelper.GetHwndFromUIElement Method

Gets a window handle from the specified UI element.

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

Syntax

'宣告
Public Shared Function GetHwndFromUIElement ( _
    element As IVsUIElement, _
    parent As IntPtr _
) As IntPtr
public static IntPtr GetHwndFromUIElement(
    IVsUIElement element,
    IntPtr parent
)

Parameters

Return Value

Type: System.IntPtr
The window handle.

.NET Framework Security

See Also

Reference

WindowHelper Class

Microsoft.Internal.VisualStudio.PlatformUI Namespace