AutomationElement.IsKeyboardFocusableProperty Campo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Identifica la IsKeyboardFocusable proprietà .
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
Valore del campo
Esempio
Nell'esempio seguente viene recuperato il valore corrente della proprietà . Il valore predefinito viene restituito se l'elemento non ne fornisce uno.
bool isControlFocusable = (bool)
autoElement.GetCurrentPropertyValue(AutomationElement.IsKeyboardFocusableProperty);
Dim isControlFocusable As Boolean = _
CBool(autoElement.GetCurrentPropertyValue(AutomationElement.IsKeyboardFocusableProperty))
Commenti
Questo identificatore viene usato dalle applicazioni client Automazione interfaccia utente. Automazione interfaccia utente provider devono usare l'identificatore equivalente in AutomationElementIdentifiers.
Questa proprietà può essere recuperata anche dalle Current proprietà o Cached .
La proprietà fornisce informazioni necessarie per il corretto funzionamento del SetFocus metodo .
I valori restituiti della proprietà sono di tipo Boolean. Il valore predefinito per la proprietà è false.