ใช้ BufferWidth รับหรือกำหนดความกว้างของพื้นที่บัฟเฟอร์
ใช้คุณสมบัติเช่นนี้ −
Console.BufferWidth
เรามาดูตัวอย่างฉบับสมบูรณ์กัน
ตัวอย่าง
using System;
class Demo {
static void Main() {
Console.WriteLine("Buffer width (columns) = "+Console.BufferWidth);
}
} ผลลัพธ์
Buffer width (columns) = 0