AutomationPeer.HasKeyboardFocus Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether the element that is associated with this automation peer currently has keyboard focus.
public:
virtual bool HasKeyboardFocus() = HasKeyboardFocus;
bool HasKeyboardFocus();
public bool HasKeyboardFocus();
function hasKeyboardFocus()
Public Function HasKeyboardFocus () As Boolean
Returns
Boolean
bool
true if the element has keyboard focus; otherwise, false.