C#-এ কনসোল বাফারের প্রস্থ (BufferWidth) পরিবর্তন করতে Console.BufferWidth প্রোপার্টি ব্যবহার করা হয়।
উদাহরণ
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);
}
}
আউটপুট
Buffer Height = 200 Buffer Width = 200