WindowHelper.GetHwndFromUIElement Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets a window handle from the specified UI element.

Namespace:  Microsoft.Internal.VisualStudio.PlatformUI
Assemblies:   Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Declaration
Public Shared Function GetHwndFromUIElement ( _
    element As IVsUIElement, _
    parent As IntPtr _
) As IntPtr
public static IntPtr GetHwndFromUIElement(
    IVsUIElement element,
    IntPtr parent
)
public:
static IntPtr GetHwndFromUIElement(
    IVsUIElement^ element, 
    IntPtr parent
)
static member GetHwndFromUIElement : 
        element:IVsUIElement * 
        parent:IntPtr -> IntPtr
public static function GetHwndFromUIElement(
    element : IVsUIElement, 
    parent : IntPtr
) : IntPtr

Parameters

Return Value

Type: System.IntPtr
The window handle.

.NET Framework Security

See Also

Reference

WindowHelper Class

Microsoft.Internal.VisualStudio.PlatformUI Namespace