KeyEventArgs(KeyboardDevice, PresentationSource, Int32, Key) KeyEventArgs(KeyboardDevice, PresentationSource, Int32, Key) KeyEventArgs(KeyboardDevice, PresentationSource, Int32, Key) Constructor

定義

KeyEventArgs クラスの新しいインスタンスを初期化します。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

パラメーター

keyboard
KeyboardDevice KeyboardDevice KeyboardDevice

このイベントに関連付けられた論理キーボード デバイス。The logical keyboard device associated with this event.

inputSource
PresentationSource PresentationSource PresentationSource

入力ソース。The input source.

timestamp
Int32 Int32 Int32

入力が発生した時刻。The time when the input occurred.

key
Key Key Key

イベントによって参照されるキー。The key referenced by the event.

適用対象

こちらもご覧ください