KeyboardDevice.Focus(IInputElement) 메서드

정의

지정된 IInputElement에 키보드 포커스를 설정합니다.

public:
 System::Windows::IInputElement ^ Focus(System::Windows::IInputElement ^ element);
public System.Windows.IInputElement Focus (System.Windows.IInputElement element);
[System.Security.SecurityCritical]
public System.Windows.IInputElement Focus (System.Windows.IInputElement element);
member this.Focus : System.Windows.IInputElement -> System.Windows.IInputElement
[<System.Security.SecurityCritical>]
member this.Focus : System.Windows.IInputElement -> System.Windows.IInputElement
Public Function Focus (element As IInputElement) As IInputElement

매개 변수

element
IInputElement

포커스를 이동할 대상 요소입니다.

반환

키보드 포커스가 있는 요소입니다.

특성

예외

elementUIElement 또는 ContentElement가 아닌 경우

적용 대상