- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- 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 BufferHeight of the Console in C#?
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
Advertisements
To Continue Learning Please Login
Login with Google