Initializes a new instance of the ConsoleKeyInfo structure using the specified character, console key, and modifier keys.

Namespace:  Rebex.TerminalEmulation
Assembly:  Rebex.Terminal (in Rebex.Terminal.dll)

Syntax

Visual Basic
Public Sub New ( _
	keyChar As Char, _
	key As ConsoleKey, _
	shift As Boolean, _
	alt As Boolean, _
	control As Boolean _
)
C#
public ConsoleKeyInfo(
	char keyChar,
	ConsoleKey key,
	bool shift,
	bool alt,
	bool control
)

Parameters

keyChar
Type: System..::..Char
Unicode character this instance will represent.
key
Type: Rebex.TerminalEmulation..::..ConsoleKey
Console key this info will be for.
shift
Type: System..::..Boolean
Specifies whether simulates pressed SHIFT key.
alt
Type: System..::..Boolean
Specifies whether simulates pressed ALT key.
control
Type: System..::..Boolean
Specifies whether simulates pressed CTRL key.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also