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