Console Methods
.NET Framework 3.5
The Console type exposes the following members.
| Name | Description | |
|---|---|---|
|
Beep | Overloaded. Plays the sound of a beep through the console speaker. |
|
Clear | Clears the console buffer and corresponding console window of display information. |
|
MoveBufferArea | Overloaded. Copies a specified source area of the screen buffer to a specified destination area. |
|
OpenStandardError | Overloaded. Acquires the standard error stream. |
|
OpenStandardInput | Overloaded. Acquires the standard input stream. |
|
OpenStandardOutput | Overloaded. Acquires the standard output stream. |
|
Read | Reads the next character from the standard input stream. |
|
ReadKey | Overloaded. Obtains the next character or function key pressed by the user. |
|
ReadLine | Reads the next line of characters from the standard input stream. |
|
ResetColor | Sets the foreground and background console colors to their defaults. |
|
SetBufferSize | Sets the height and width of the screen buffer area to the specified values. |
|
SetCursorPosition | Sets the position of the cursor. |
|
SetError | Sets the Error property to the specified TextWriter object. |
|
SetIn | Sets the In property to the specified TextReader object. |
|
SetOut | Sets the Out property to the specified TextWriter object. |
|
SetWindowPosition | Sets the position of the console window relative to the screen buffer. |
|
SetWindowSize | Sets the height and width of the console window to the specified values. |
|
Write | Overloaded. Writes the text representation of the specified value or values to the standard output stream. |
|
WriteLine | Overloaded. Writes the specified data, followed by the current line terminator, to the standard output stream. |