This documentation is archived and is not being maintained.
Console Properties
Visual Studio 2010
The Console type exposes the following members.
| Name | Description | |
|---|---|---|
|
BackgroundColor | Gets or sets the background color of the console. |
|
BufferHeight | Gets or sets the height of the buffer area. |
|
BufferWidth | Gets or sets the width of the buffer area. |
|
CapsLock | Gets a value indicating whether the CAPS LOCK keyboard toggle is turned on or turned off. |
|
CursorLeft | Gets or sets the column position of the cursor within the buffer area. |
|
CursorSize | Gets or sets the height of the cursor within a character cell. |
|
CursorTop | Gets or sets the row position of the cursor within the buffer area. |
|
CursorVisible | Gets or sets a value indicating whether the cursor is visible. |
|
Error | Gets the standard error output stream. |
|
ForegroundColor | Gets or sets the foreground color of the console. |
|
In | Gets the standard input stream. |
|
InputEncoding | Gets or sets the encoding the console uses to read input. |
|
KeyAvailable | Gets a value indicating whether a key press is available in the input stream. |
|
LargestWindowHeight | Gets the largest possible number of console window rows, based on the current font and screen resolution. |
|
LargestWindowWidth | Gets the largest possible number of console window columns, based on the current font and screen resolution. |
|
NumberLock | Gets a value indicating whether the NUM LOCK keyboard toggle is turned on or turned off. |
|
Out | Gets the standard output stream. |
|
OutputEncoding | Gets or sets the encoding the console uses to write output. |
|
Title | Gets or sets the title to display in the console title bar. |
|
TreatControlCAsInput | Gets or sets a value indicating whether the combination of the Control modifier key and C console key (CTRL+C) is treated as ordinary input or as an interruption that is handled by the operating system. |
|
WindowHeight | Gets or sets the height of the console window area. |
|
WindowLeft | Gets or sets the leftmost position of the console window area relative to the screen buffer. |
|
WindowTop | Gets or sets the top position of the console window area relative to the screen buffer. |
|
WindowWidth | Gets or sets the width of the console window. |
Show: