AutomationElement.IsKeyboardFocusableProperty 欄位

定義

識別 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 對等識別碼。

您也可以從 CurrentCached 屬性擷取這個屬性。

屬性會提供方法正常運作 SetFocus 所需的資訊。

屬性的傳回值的類型為 Boolean 。 屬性的預設值為 false

適用於

另請參閱