Share via


IUIAutomationElement::SetFocus Method

Sets the keyboard focus to this UI Automation element.

Syntax

HRESULT SetFocus(VOID);

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

IUIAutomationElement