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
Output:
👁 Image
Program 2: Setting the value of WindowTop