System.Console.BufferHeight Property

Gets or sets the height of the buffer area.

Syntax

public static int BufferHeight { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

This property defines the number of rows (or lines) stored in the buffer that is accessed by a console mode window. In contrast, the Console.WindowHeight property defines the number of rows that are actually displayed in the console window at any particular time. If the number of rows actually written to the buffer exceeds the number of rows defined by the Console.WindowHeight property, the window can be scrolled vertically so that it displays a contiguous number of rows that are equal to the Console.WindowHeight property and are located anywhere in the buffer.

If a set operation decreases the value of the Console.BufferHeight property, the uppermost lines are removed. For example, if the number of lines is reduced from 300 to 250, lines 0 through 49 are removed, and the existing lines 50 through 299 become lines 0 through 249.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0