Table of Contents

Class KeyPressEventArgs

Namespace
SharpConsoleUI.Core
Assembly
SharpConsoleUI.dll

Event arguments for key press events

public class KeyPressEventArgs : EventArgs
Inheritance
KeyPressEventArgs
Inherited Members

Constructors

KeyPressEventArgs(ConsoleKeyInfo)

Initializes a new instance of the KeyPressEventArgs class.

public KeyPressEventArgs(ConsoleKeyInfo keyInfo)

Parameters

keyInfo ConsoleKeyInfo

The key information for the pressed key.

Properties

Handled

Whether the key press was handled

public bool Handled { get; set; }

Property Value

bool

KeyInfo

The key information

public ConsoleKeyInfo KeyInfo { get; }

Property Value

ConsoleKeyInfo

Timestamp

Timestamp when the key was pressed

public DateTime Timestamp { get; }

Property Value

DateTime