KeyEventArgs(KeyboardDevice, PresentationSource, Int32, Key) Konstruktor

Definition

Initialisiert eine neue Instanz der KeyEventArgs-Klasse.Initializes a new instance of the KeyEventArgs class.

public:
 KeyEventArgs(System::Windows::Input::KeyboardDevice ^ keyboard, System::Windows::PresentationSource ^ inputSource, int timestamp, System::Windows::Input::Key key);
[System.Security.SecurityCritical]
public KeyEventArgs (System.Windows.Input.KeyboardDevice keyboard, System.Windows.PresentationSource inputSource, int timestamp, System.Windows.Input.Key key);
new System.Windows.Input.KeyEventArgs : System.Windows.Input.KeyboardDevice * System.Windows.PresentationSource * int * System.Windows.Input.Key -> System.Windows.Input.KeyEventArgs

Parameter

keyboard
KeyboardDevice

Das logische Tastaturgerät, das diesem Ereignis zugeordnet ist.The logical keyboard device associated with this event.

inputSource
PresentationSource

Die Eingabequelle.The input source.

timestamp
Int32

Die Zeit der Eingabe.The time when the input occurred.

key
Key

Die Taste, auf die das Ereignis verweist.The key referenced by the event.

Attribute

Gilt für:

Siehe auch