IInputElement.Focus 方法

定義

嘗試將鍵盤的焦點放在這個項目上。

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

傳回

Boolean

如果鍵盤焦點移至這個項目上,或早已在此項目上,則為 true,否則為 false

備註

此介面不適用於公用實作。 如需詳細資訊,請參閱 介面的 IInputElement 備註。

適用於

另請參閱