A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/c-sharp/console-movebufferarea-method-in-c-sharp/ below:

Console.MoveBufferArea Method in C# - GeeksforGeeks

Console.MoveBufferArea Method in C#

Last Updated : 11 Jul, 2025

Console.MoveBufferArea Method is used to move the specified screen area to destination area.

Syntax: public static void MoveBufferArea (int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop); Parameters: sourceLeft: The leftmost column of the source area. sourceTop: The topmost row of the source area. sourceWidth: The number of columns in the source area. sourceHeight: The number of rows in the source area. targetLeft: The leftmost column of the destination area. targetTop: The topmost row of the destination area.

Exceptions:

Example 1: 

csharp
// C# program to print GeeksForGeeks
using System;

namespace GFG {

class Program {

    static void Main(string[] args)
    {
        Console.WriteLine("GeeksForGeeks");
    }
}
}

Output: Example 2: 

csharp
// C# program to change area
// of GeeksForGeeks
using System;

namespace GFG {

class Program {

    static void Main(string[] args)
    {
        Console.WriteLine("GeeksForGeeks");

        // using the method
        Console.MoveBufferArea(0, 0, Console.BufferWidth,
                           Console.BufferHeight, 10, 10);
    }
}
}

Output: Note:

Reference:



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4