C# Console SetWindowPosition

Description

Console SetWindowPosition sets the position of the console window relative to the screen buffer.

Syntax

Console.SetWindowPosition has the following syntax.


public static void SetWindowPosition(
  int left,
  int top
)

Parameters

Console.SetWindowPosition has the following parameters.

  • left - The column position of the upper left corner of the console window.
  • top - The row position of the upper left corner of the console window.

Returns

Console.SetWindowPosition method returns

Example


using System;//from  www  .  j av  a 2s .com
using System.Text;
using System.IO;

class Sample 
{
    public static void Main() 
    {
       Console.SetWindowPosition(0, 0);
    } // 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