Szerkesztés

Megosztás a következőn keresztül:


AutomationElement.IsKeyboardFocusableProperty Field

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 

Field Value

Examples

The following example retrieves the current value of the property. The default value is returned if the element does not provide one.

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

Remarks

This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent identifier in AutomationElementIdentifiers.

This property can also be retrieved from the Current or Cached properties.

The property provides information necessary to the proper functioning of the SetFocus method.

Return values of the property are of type Boolean. The default value for the property is false.

Applies to

See also