KeyboardDevice.IsKeyToggled(Key) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Détermine si le paramètre spécifié Key est dans l’état bascule.
public:
bool IsKeyToggled(System::Windows::Input::Key key);
public bool IsKeyToggled(System.Windows.Input.Key key);
member this.IsKeyToggled : System.Windows.Input.Key -> bool
Public Function IsKeyToggled (key As Key) As Boolean
Paramètres
- key
- Key
Clé à vérifier.
Retours
true s’il key est dans l’état bascule ; sinon, false.
Exceptions
key n’est pas une clé valide.