Skip to main content
Version: 4.1

KeyEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Provides data for the KeyDown or KeyUp event.

public class KeyEventArgs : EventArgs

Constructors

Instance member KeyEventArgs(keyData)

Initializes a new instance of the KeyEventArgs class.

NameTypeDescription
keyDataKeysA Keys representing the key that was pressed, combined with any modifier flags that indicate which CTRL, SHIFT, and ALT keys were pressed at the same time. Possible values are obtained be applying the bitwise OR (|) operator to constants from the Keys enumeration.

Properties

Instance member Alt

Boolean: Returns whether the ALT key was pressed.

Instance member Control

Boolean: Returns whether the CTRL key was pressed.

Instance member Handled

Boolean: Returns or sets whether the event was handled.

Instance member KeyCode

Keys: Returns the keyboard code..

Instance member KeyData

Keys: Returns the key data.

Instance member KeyValue

Int32: Returns the keyboard value.

Instance member Modifiers

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

Instance member Shift

Boolean: Returns a value indicating whether the SHIFT key was pressed.

Methods

Instance member IsAltPressed()

Returns whether the Alt key is pressed.

Returns: Boolean.

Instance member IsCtrlPressed()

Returns whether the Control key is pressed.

Returns: Boolean.

Instance member IsShiftPressed()

Returns whether the Shift key is pressed.

Returns: Boolean.

Used By

NameDescription
KeyEventHandlerRepresents the method that will handle the KeyUp or KeyDown event of a Control.