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))

注釈

この識別子は、UI オートメーションクライアント アプリケーションで使用されます。 UI オートメーション プロバイダーでは、 でAutomationElementIdentifiers同等の識別子を使用する必要があります。

このプロパティは、 または Cached プロパティからCurrent取得することもできます。

プロパティは、 メソッドが適切に機能するために必要な情報を提供します SetFocus

プロパティの戻り値は 型 Booleanです。 プロパティの既定値は です false

適用対象

こちらもご覧ください