C# Console BufferHeight
Description
Console BufferHeight
gets or sets the height of the buffer
area.
Syntax
Console.BufferHeight
has the following syntax.
public static int BufferHeight { get; set; }
Example
This example demonstrates the BufferHeight and BufferWidth properties.
// ww w . j a v a2s . c om
using System;
class Sample
{
public static void Main()
{
Console.WriteLine("The current buffer height is {0} rows.",
Console.BufferHeight);
Console.WriteLine("The current buffer width is {0} columns.",
Console.BufferWidth);
}
}