KeyEventArgs(KeyboardDevice, PresentationSource, Int32, Key) 建構函式

定義

初始化 KeyEventArgs 類別的新執行個體。

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)

參數

keyboard
KeyboardDevice

與此事件相關的邏輯鍵盤裝置。

inputSource
PresentationSource

輸入來源。

timestamp
Int32

輸入發生的時間點。

key
Key

事件中提到的鑰匙。

屬性

適用於

另請參閱