共用方式為


AutomationPeer.HasKeyboardFocus 方法

定義

取得值,這個值表示與這個自動化對等個體相關聯的項目目前是否有鍵盤焦點。

public:
 virtual bool HasKeyboardFocus() = HasKeyboardFocus;
bool HasKeyboardFocus();
public bool HasKeyboardFocus();
function hasKeyboardFocus()
Public Function HasKeyboardFocus () As Boolean

傳回

Boolean

bool

如果元素具有鍵盤焦點,則為true;否則為false

適用於