Sprache

AutomationElement.IsKeyboardFocusableProperty Feld

Definition

Identifies the IsKeyboardFocusable property.

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 

Feldwert

Beispiele

Im folgenden Beispiel wird der aktuelle Wert der Eigenschaft abgerufen. Der Standardwert wird zurückgegeben, wenn das Element kein Element bereitstellt.

bool isControlFocusable = (bool)
   autoElement.GetCurrentPropertyValue(AutomationElement.IsKeyboardFocusableProperty);
Dim isControlFocusable As Boolean = _
    CBool(autoElement.GetCurrentPropertyValue(AutomationElement.IsKeyboardFocusableProperty))

Hinweise

Dieser Bezeichner wird von Benutzeroberflächenautomatisierung Clientanwendungen verwendet. Benutzeroberflächenautomatisierung Anbieter sollten den entsprechenden Bezeichner in AutomationElementIdentifiers verwenden.

Diese Eigenschaft kann auch aus den Current Eigenschaften abgerufen Cached werden.

Die Eigenschaft stellt Informationen bereit, die für das ordnungsgemäße Funktionieren der SetFocus Methode erforderlich sind.

Rückgabewerte der Eigenschaft sind vom Typ Boolean. Der Standardwert für die Eigenschaft lautet false.

Gilt für:

Siehe auch