C# Console SetBufferSize

Description

Console SetBufferSize sets the height and width of the screen buffer area to the specified values.

Syntax

Console.SetBufferSize has the following syntax.


public static void SetBufferSize(
  int width,
  int height
)

Parameters

Console.SetBufferSize has the following parameters.

  • width - The width of the buffer area measured in columns.
  • height - The height of the buffer area measured in rows.

Returns

Console.SetBufferSize method returns

Example


using System;/*from www. ja  v a  2 s.  co  m*/
using System.Text;
using System.IO;

class Sample 
{
    public static void Main() 
    {
       Console.SetBufferSize(80, 80);
    } // end Main
} // end Sample 





















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