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 で同等の識別子を使用する必要があります。

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

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

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

適用対象

こちらもご覧ください