IInputElement.Focus IInputElement.Focus IInputElement.Focus IInputElement.Focus Method

定義

嘗試將鍵盤的焦點放在這個項目上。Attempts to focus the keyboard on this element.

public:
 bool Focus();
public bool Focus ();
abstract member Focus : unit -> bool
Public Function Focus () As Boolean

傳回

如果鍵盤焦點移至這個項目上,或早已在此項目上,則為 true,否則為 falsetrue if keyboard focus is moved to this element or already was on this element; otherwise, false.

備註

此介面不適用於公用的執行。This interface is not intended for public implementation. 如需詳細資訊, 請參閱IInputElement介面的備註。For more information, see remarks for the IInputElement interface.

適用於

另請參閱