The Cursor
static class has methods that allow you to move or position
the cursor, and to control its shape, visibility and other appearance
attributes.
Moves the cursor position to the top row of the console buffer.
Moves the cursor position to the bottom row of the console buffer.
Moves the cursor position vertically (up – toward the top, or down – toward the bottom)
within the
The “rows parameter is an integer value indicating the number of rows to move the cursor, as follows:
Also see MoveUp and MoveDown below for additional information.
Moves the cursor position up (toward the top) within the console buffer by the number of rows indicated by the “rows” argument (or by one for the overload that takes no argument).
If “rows” is > the cursor’s current row, it is moved to the top of the buffer (row 0).
Moves the cursor position down (toward the bottom) within the console buffer by the number of rows indicated by the “rows” argument (or by one for the overload that takes no argument).
If the downward movement would result in the cursor position being below the bottom of the buffer, the console is scrolled up by the appropriate number of rows.
Shows the cursor.
Shows or Hides the cursor based on the boolean argument.
Hides the cursor.
Hides or Shows the cursor based on the boolean argument.
Starts blinking the cursor.
Starts or stops blinking the cursor based on the boolean argument.
Stops blinking the cursor.
Stops or starts blinking the cursor based on the boolean argument.
Sets the cursor to the shape specifed by the “shape” argument.
The argument is a value from the CursorShape
enum.