Export (0) Print
Expand All

Console Methods

The Console type exposes the following members.

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

Community Additions

ADD
Show:
© 2014 Microsoft