C# Console BufferHeight Property

CsharpProgrammingServer Side Programming

Use the BufferHeight gets or sets the height of the buffer area.

Use the property like this −

Console.BufferHeight

Let us see the complete example.

Example

 Live Demo

using System;
class Demo {
   static void Main() {
      Console.WriteLine("Buffer height (rows) = "+Console.BufferHeight);
   }
}

Output

Buffer height (rows) = 0
raja
Published on 12-Sep-2018 12:22:40
Advertisements