C# Console BufferWidth Property



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
Updated on: 2020-06-23T08:21:16+05:30

241 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements