KeyEventArgs(KeyboardDevice, PresentationSource, Int32, Key) Construtor

Definição

Inicializa uma nova instância da classe 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);
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
[<System.Security.SecurityCritical>]
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)

Parâmetros

keyboard
KeyboardDevice

O dispositivo de teclado lógico associado a este evento.The logical keyboard device associated with this event.

inputSource
PresentationSource

A fonte de entrada.The input source.

timestamp
Int32

A hora em que ocorreu a entrada.The time when the input occurred.

key
Key

A chave referenciada pelo evento.The key referenced by the event.

Atributos

Aplica-se a

Confira também