AutomationPeer.SetFocus 方法

定義

對與此自動化對等個體關聯的項目設定鍵盤焦點。Sets the keyboard focus on the element that is associated with this automation peer.

public:
 void SetFocus();
public void SetFocus ();
member this.SetFocus : unit -> unit
Public Sub SetFocus ()

例外狀況

目前正在公開呼叫此方法。A public call to this method is currently in progress.

適用於