C# Console WindowLeft
Description
Console WindowLeft
gets or sets the leftmost position
of the console window area relative to the screen buffer.
Syntax
Console.WindowLeft
has the following syntax.
public static int WindowLeft { get; set; }
Example
using System;//from ww w . j av a 2 s .c o m
public class Example
{
public static void Main()
{
ConsoleKeyInfo key;
bool moved = false;
Console.BufferWidth = 80;
Console.Clear();
int pos = Console.WindowLeft - 1;
Console.WindowLeft = pos;
}
}