FocusHelper.IsKeyboardFocusWithin Method (IntPtr)
Determines whether WPF or Win32 keyboard focus is within the specified HWND.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Shared Function IsKeyboardFocusWithin ( _
hwnd As IntPtr _
) As Boolean
public static bool IsKeyboardFocusWithin(
IntPtr hwnd
)
public:
static bool IsKeyboardFocusWithin(
IntPtr hwnd
)
static member IsKeyboardFocusWithin :
hwnd:IntPtr -> bool
public static function IsKeyboardFocusWithin(
hwnd : IntPtr
) : boolean
Parameters
hwnd
Type: IntPtrThe HWND which may have or contain the focus.
Return Value
Type: Boolean
Returns true if the focus is within or contained by the HWND; otherwise returns false.
.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.