Bagikan melalui


KeyboardDevice.Focus(IInputElement) Metode

Definisi

Mengatur fokus keyboard pada yang ditentukan 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

Parameter

element
IInputElement

Elemen untuk memindahkan fokus ke.

Mengembalikan

Elemen yang memiliki fokus keyboard.

Atribut

Pengecualian

Berlaku untuk