KeyboardDevice.IsKeyDown(Key) Metod

Definition

Avgör om den angivna Key är i nedläge.

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

Parametrar

key
Key

Nyckeln som ska kontrolleras.

Returer

true if key is in the down state;wise, false.

Undantag

key är inte en giltig nyckel.

Gäller för