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);
    }
}




















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version