WindowHelper.GetHwndFromUIElement Method
Create the specified element as a modeless child window
Namespace: Microsoft.Internal.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Déclaration
Public Shared Function GetHwndFromUIElement ( _
element As IVsUIElement, _
parent As IntPtr _
) As IntPtr
'Utilisation
Dim element As IVsUIElement
Dim parent As IntPtr
Dim returnValue As IntPtr
returnValue = WindowHelper.GetHwndFromUIElement(element, _
parent)
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
- element
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIElement
Element to create
- parent
Type: System.IntPtr
The parent window handle
Return Value
Type: System.IntPtr
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.