Class KeyEvent
KeyEvent class. Represent key event.
Inheritance
System.Object
KeyEvent
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.System
Assembly: Cosmos.System2.dll
Syntax
public class KeyEvent
Constructors
| Improve this Doc View SourceKeyEvent()
Create new instance of the KeyEvent class.
Declaration
public KeyEvent()
KeyEvent(Char, ConsoleKeyEx, Boolean, Boolean, Boolean, KeyEvent.KeyEventType)
Create new instance of the KeyEvent class.
Declaration
public KeyEvent(char keyChar, ConsoleKeyEx key, bool shift, bool alt, bool control, KeyEvent.KeyEventType type)
Parameters
Type | Name | Description |
---|---|---|
System.Char | keyChar | Key char. |
ConsoleKeyEx | key | Key. |
System.Boolean | shift | Shift. |
System.Boolean | alt | Alt. |
System.Boolean | control | Ctrl. |
KeyEvent.KeyEventType | type | Type. |
Properties
| Improve this Doc View SourceKey
Get and set key.
Declaration
public ConsoleKeyEx Key { get; set; }
Property Value
Type | Description |
---|---|
ConsoleKeyEx |
KeyChar
Get and set key char.
Declaration
public char KeyChar { get; set; }
Property Value
Type | Description |
---|---|
System.Char |
Modifiers
Get and set console modifiers.
Declaration
public ConsoleModifiers Modifiers { get; set; }
Property Value
Type | Description |
---|---|
System.ConsoleModifiers |
Type
Get and set key event type.
Declaration
public KeyEvent.KeyEventType Type { get; set; }
Property Value
Type | Description |
---|---|
KeyEvent.KeyEventType |