C# | How to change the WindowTop of the Console Last Updated : 28 Jan, 2019 Comments Improve Suggest changes Like Article Like Report Given the normal Console in C#, the task is to change the WindowTop of the Console. Approach: This can be done using the WindowTop property in the Console class of the System package in C#. The WindowTop gets or sets the top position of the console window area relative to the screen buffer. Program 1: Getting the value of WindowTop csharp // C# program to illustrate the // Console.WindowTop Property using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GFG { class Program { static void Main(string[] args) { // Get the WindowTop Console.WriteLine("Current WindowTop: {0}", Console.WindowTop); } } } Output: Program 2: Setting the value of WindowTop csharp // C# program to illustrate the // Console.WindowTop Property using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GFG { class Program { static void Main(string[] args) { // Get the WindowWidth Console.WriteLine("Current WindowTop: {0}", Console.WindowTop); // Set the WindowWidth Console.BufferHeight = 100; Console.WindowTop = 10; // Get the WindowWidth Console.Write("Current WindowTop: {0}", Console.WindowTop); } } } Output: Note: See the Vertical Scroll Bar at the right side of the Window in both the images. Comment More infoAdvertise with us Next Article C# | How to change the WindowTop of the Console K Kirti_Mangal Follow Improve Article Tags : C# CSharp-Console-Class Similar Reads C# | How to change the WindowLeft of the Console Given the normal Console in C#, the task is to change the WindowLeft of the Console. Approach: This can be done using the WindowLeft property in the Console class of the System package in C#. The WindowLeft Gets or sets the leftmost position of the console window area relative to the screen buffer. 1 min read C# | How to change the WindowWidth of the Console Given the normal Console in C#, the task is to change the WindowWidth of the Console. Approach: This can be done using the WindowWidth property in the Console class of the System package in C#. The WindowWidth refers to the Width of the console window measured in columns. Program 1: Getting the valu 1 min read C# | How to change the WindowHeight of the Console Given the normal Console in C#, the task is to change the WindowHeight of the Console. Approach: This can be done using the WindowHeight property in the Console class of the System package in C#. The WindowHeight refers to the height of the console window measured in rows. Program 1: Getting the val 1 min read C# | How to change Title of the Console Given the normal Console in C#, the task is to find the default value of Title and change it to something else. Approach: This can be done using the Title property in the Console class of the System package in C#. The title refers to the string to be displayed in the title bar of the console. The ma 2 min read C# | How to change the CursorTop of the Console Given the normal Console in C#, the task is to change the CursorTop of the Console. Approach: This can be done using the CursorTop property in the Console class of the System package in C#. This changes the vertical position of the Cursor. Basically, it gets or sets the row position of the cursor wi 1 min read Like