System.Console.MoveBufferArea Method

Copies a specified source area of the screen buffer to a specified 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.

Remarks

If the destination and source parameters specify a position located outside the boundaries of the current screen buffer, only the portion of the source area that fits within the destination area is copied. That is, the source area is clipped to fit the current screen buffer.

The Console.MoveBufferArea(int, int, int, int, int, int) method copies the source area to the destination area. If the destination area does not intersect the source area, the source area is filled with blanks using the current foreground and background colors. Otherwise, the intersected portion of the source area is not filled.

Requirements

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