C# Console BufferWidth Property

CsharpProgrammingServer Side Programming

Use the BufferWidth gets or sets the width of the buffer area.

Use the property like this −

Console.BufferWidth

Let us see the complete example.

Example

 Live Demo

using System;
class Demo {
   static void Main() {
      Console.WriteLine("Buffer width (columns) = "+Console.BufferWidth);
   }
}

Output

Buffer width (columns) = 0
raja
Published on 14-Sep-2018 15:09:15
Advertisements