Udostępnij za pośrednictwem


AutomationPeer.HasKeyboardFocus Method

Definition

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.

Applies to