KeyEventArgs Constructor (KeyboardDevice^, PresentationSource^, Int32, Key)
.NET Framework (current version)
Initializes a new instance of the KeyEventArgs class.
Assembly: PresentationCore (in PresentationCore.dll)
public: [SecurityCriticalAttribute] KeyEventArgs( KeyboardDevice^ keyboard, PresentationSource^ inputSource, int timestamp, Key key )
Parameters
- keyboard
-
Type:
System.Windows.Input::KeyboardDevice^
The logical keyboard device associated with this event.
- inputSource
-
Type:
System.Windows::PresentationSource^
The input source.
- timestamp
-
Type:
System::Int32
The time when the input occurred.
- key
-
Type:
System.Windows.Input::Key
The key referenced by the event.
.NET Framework
Available since 3.0
Available since 3.0
Show: