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