Table of Contents

Class KeyEventArgs

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

The KeyEventArgs class contains information about key states.

public class KeyEventArgs : KeyboardEventArgs
Inheritance
KeyEventArgs

Constructors

KeyEventArgs()

Constructs an instance of the KeyEventArgs class.

KeyEventArgs(object, Key, uint)

Constructs an instance of the KeyEventArgs class.

Properties

Alt

Gets a value indicating whether the ALT key was pressed.

Control

Gets a value indicating whether the CTRL key was pressed.

IsDown

Whether or not the key referenced by the event is down.

IsRepeat

Whether the key pressed is a repeated key or not.

IsToggled

Whether or not the key referenced by the event is toggled.

IsUp

Whether or not the key referenced by the event is up.

Key

The Key referenced by the event, if the key is not being handled specially.

KeyCode

Gets the keyboard code for a KeyDown event. Contains key code for the key that was pressed without modifier flags.

KeyData

Gets the key data for a KeyDown event. Contains key code for the key that was pressed, combined with modifier flags that indicate which combination of CTRL, SHIFT, and ALT keys was pressed at the same time.

KeyStates

The state of the key referenced by the event.

KeyValue

Gets the keyboard value for a KeyDown event.

ModifierKeys

Returns the set of modifier keys currently pressed.

Modifiers

Gets the modifier flags for a KeyDown event. The flags indicate which combination of CTRL, SHIFT, and ALT keys was pressed.

RepeatCount

Gets or sets key repeat count.

Shift

Gets a value indicating whether the SHIFT key was pressed.

SuppressKeyPress

Gets or sets a value indicating whether the key event should be passed on to the underlying control.

Methods

ToString()

Returns a string that represents the current object.