 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to change BufferWidth of the Console in C#?
To change the BufferWidth of the Console, use the Console.BufferWidth property.
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);       Console.BufferHeight = 250;       Console.WriteLine("Buffer Width = "+Console.BufferWidth);    } }  Output
This will produce the following output −
Buffer Height = 200 Buffer Width = 200
Advertisements
 