AutomationElement.IsKeyboardFocusableProperty 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
識別 IsKeyboardFocusable 屬性。
public: static initonly System::Windows::Automation::AutomationProperty ^ IsKeyboardFocusableProperty;
public static readonly System.Windows.Automation.AutomationProperty IsKeyboardFocusableProperty;
staticval mutable IsKeyboardFocusableProperty : System.Windows.Automation.AutomationProperty
Public Shared ReadOnly IsKeyboardFocusableProperty As AutomationProperty
欄位值
範例
下列範例會擷取 屬性的目前值。 如果專案未提供預設值,則會傳回預設值。
bool isControlFocusable = (bool)
autoElement.GetCurrentPropertyValue(AutomationElement.IsKeyboardFocusableProperty);
Dim isControlFocusable As Boolean = _
CBool(autoElement.GetCurrentPropertyValue(AutomationElement.IsKeyboardFocusableProperty))
備註
消費者介面自動化用戶端應用程式會使用此識別碼。 消費者介面自動化提供者應該使用 中的 AutomationElementIdentifiers 對等識別碼。
您也可以從 Current 或 Cached 屬性擷取這個屬性。
屬性會提供方法正常運作 SetFocus 所需的資訊。
屬性的傳回值的類型為 Boolean 。 屬性的預設值為 false
。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應