Gets a value that indicates whether the element has keyboard focus.
Assembly: UIAutomationClient (in UIAutomationClient.dll)
If an element within a container has focus, is also true for the container element.
For more information, see HasKeyboardFocusProperty.
- 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.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003