VOOZH about

URL: https://www.geeksforgeeks.org/c-sharp/c-sharp-how-to-change-the-windowtop-of-the-console/

⇱ C# | How to change the WindowTop of the Console - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

C# | How to change the WindowTop of the Console

Last Updated : 28 Jan, 2019
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
Output: 👁 Image
Note: See the Vertical Scroll Bar at the right side of the Window in both the images.
Comment
Article Tags:

Explore