Skip to main content
Version: 3.5

KeyEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the KeyDown or KeyUp event.

public class KeyEventArgs : EventArgs

Constructors

Instance memberKeyEventArgs(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 memberAlt

Boolean: Returns whether the ALT key was pressed.

Instance memberControl

Boolean: Returns whether the CTRL key was pressed.

Instance memberHandled

Boolean: Returns or sets whether the event was handled.

Instance memberKeyCode

Keys: Returns the keyboard code..

Instance memberKeyData

Keys: Returns the key data.

Instance memberKeyValue

Int32: Returns the keyboard value.

Instance memberModifiers

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

Instance memberShift

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

Methods

Instance memberIsAltPressed()

Returns whether the Alt key is pressed.

Returns: Boolean.

Instance memberIsCtrlPressed()

Returns whether the Control key is pressed.

Returns: Boolean.

Instance memberIsShiftPressed()

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.