NewConsoleKeyInfo
Initializes a new ConsoleKeyInfo object that represents the state of a key press.
Public Function NewConsoleKeyInfo(
ByVal KeyChar As Integer,
ByVal Key As ConsoleKey,
ByVal Shift As Boolean,
ByVal Alt As Boolean,
ByVal Control As Boolean ) As ConsoleKeyInfo
Parameters
- KeyChar
-
[ByVal]
Integer.
The Unicode character that corresponds to the Key parameter.
- Key
-
[ByVal]
ConsoleKey.
The console key that corresponds to the KeyChar parameter.
- Shift
-
[ByVal]
Boolean.
True to indicate that a SHIFT key was pressed; otherwise, False.
- Alt
-
[ByVal]
Boolean.
True to indicate that a ALT key was pressed; otherwise, False.
- Control
-
[ByVal]
Boolean.
True to indicate that a CTRL key was pressed; otherwise, False.
Return Values
ConsoleKeyInfo - A new ConsoleKeyInfo object.
See Also
Project CorLib Overview
Class Constructors Overview