Linguaggio

AutomationElement.AutomationElementInformation.HasKeyboardFocus Proprietà

Definizione

Ottiene un valore che indica se l'elemento ha lo stato attivo della tastiera.

public:
 property bool HasKeyboardFocus { bool get(); };
public bool HasKeyboardFocus { get; }
member this.HasKeyboardFocus : bool
Public ReadOnly Property HasKeyboardFocus As Boolean

Valore della proprietà

true se l'elemento ha lo stato attivo della tastiera; in caso contrario false, .

Commenti

Se un elemento all'interno di un contenitore ha lo stato attivo, HasKeyboardFocus è true anche per l'elemento contenitore.

Per altre informazioni, vedere HasKeyboardFocusProperty.

Si applica a