Skip to main content
Version: 4.1

PreviewKeyDownEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Provides data for the PreviewKeyDown event.

public class PreviewKeyDownEventArgs : EventArgs

Constructors​

Instance member PreviewKeyDownEventArgs(keyData)​

Initializes a new instance of the PreviewKeyDownEventArgs class with the specified key.

NameTypeDescription
keyDataKeysOne of the Keys values.

Properties​

Instance member Alt​

Boolean: Returns whether the ALT key was pressed.

Value: true if the ALT key was pressed; otherwise, false.

Instance member Control​

Boolean: Returns whether the CTRL key was pressed.

Value: true if the CTRL key was pressed; otherwise, false.

Instance member IsInputKey​

Boolean: Returns whether a key is a regular input key.

Value: true if the key is a regular input key; otherwise, false.

Instance member KeyCode​

Keys: Returns the keyboard code.

Value: One of the Keys values.

Instance member KeyData​

Keys: Returns the key data.

Value: One of the Keys values.

Instance member KeyValue​

Int32: Returns the keyboard value.

Value: An Int32 representing the keyboard value.

Instance member Modifiers​

Keys: Returns the modifier flags indicating which combination of CTRL, SHIFT, and ALT keys was pressed.

Value: One of the Keys values.

Instance member Shift​

Boolean: Returns whether the SHIFT key was pressed.

Value: true if the SHIFT key was pressed; otherwise, false.

Used By​

NameDescription
PreviewKeyDownEventHandlerRepresents the method that will handle the PreviewKeyDown event.