KeyboardDevice.IsKeyDown(Key) Méthode

Définition

Détermine si la Key spécifiée est enfoncée.

public:
 bool IsKeyDown(System::Windows::Input::Key key);
public bool IsKeyDown (System.Windows.Input.Key key);
member this.IsKeyDown : System.Windows.Input.Key -> bool
Public Function IsKeyDown (key As Key) As Boolean

Paramètres

key
Key

Clé à vérifier.

Retours

true si key est enfoncé ; sinon, false.

Exceptions

key n'est pas une touche valide.

S’applique à