System.Console.WindowTop Property

Gets or sets the top position of the console window area relative to the screen buffer.

Syntax

public static int WindowTop { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The console represents a rectangular window into a larger rectangular buffer area. Both the window and the buffer are measured vertically by their number of rows and horizontally by their number of columns. The dimensions of the buffer area are defined by the Console.BufferHeight and Console.BufferWidth properties. The dimensions of the console area are defined by the Console.WindowHeight and Console.WindowWidth properties. The Console.WindowTop property determines which row of the buffer area is displayed in the first column of the console window. The value of the Console.WindowTop property can range from 0 to Console.BufferHeight - Console.WindowHeight. Attempting to set it to a value outside that range throws an ArgumentOutOfRangeException.

Requirements

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