How to change BufferHeight of the Console in C#?

CsharpServer Side ProgrammingProgramming

To change the BufferHeight of the Console, use the Console.BufferHeight property in C#.

Example

Let us now see an example −

using System;
class Demo {
   public static void Main (string[] args) {
      Console.BufferHeight = 200;
      Console.WriteLine("Buffer Height = "+Console.BufferHeight);
   }
}

Output

This will produce the following output −

Buffer Height = 200
raja
Published on 14-Nov-2019 10:48:37
Advertisements