KeyEventArgs(KeyboardDevice, PresentationSource, Int32, Key) Konstruktor
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Initierar en ny instans av KeyEventArgs klassen.
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);
public KeyEventArgs(System.Windows.Input.KeyboardDevice keyboard, System.Windows.PresentationSource inputSource, int timestamp, System.Windows.Input.Key key);
[<System.Security.SecurityCritical>]
new System.Windows.Input.KeyEventArgs : System.Windows.Input.KeyboardDevice * System.Windows.PresentationSource * int * System.Windows.Input.Key -> System.Windows.Input.KeyEventArgs
new System.Windows.Input.KeyEventArgs : System.Windows.Input.KeyboardDevice * System.Windows.PresentationSource * int * System.Windows.Input.Key -> System.Windows.Input.KeyEventArgs
Public Sub New (keyboard As KeyboardDevice, inputSource As PresentationSource, timestamp As Integer, key As Key)
Parametrar
- keyboard
- KeyboardDevice
Den logiska tangentbordsenhet som är associerad med den här händelsen.
- inputSource
- PresentationSource
Indatakällan.
- timestamp
- Int32
Den tid då indata inträffade.
- key
- Key
Nyckeln som refereras av händelsen.
- Attribut