Console.MoveBufferArea 메서드

정의

화면 버퍼의 지정한 소스 영역을 지정한 대상 영역에 복사합니다.

오버로드

MoveBufferArea(Int32, Int32, Int32, Int32, Int32, Int32)

화면 버퍼의 지정한 소스 영역을 지정한 대상 영역에 복사합니다.

MoveBufferArea(Int32, Int32, Int32, Int32, Int32, Int32, Char, ConsoleColor, ConsoleColor)

화면 버퍼의 지정한 소스 영역을 지정한 대상 영역에 복사합니다.

MoveBufferArea(Int32, Int32, Int32, Int32, Int32, Int32)

화면 버퍼의 지정한 소스 영역을 지정한 대상 영역에 복사합니다.

public:
 static void MoveBufferArea(int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static void MoveBufferArea (int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop);
public static void MoveBufferArea (int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member MoveBufferArea : int * int * int * int * int * int -> unit
static member MoveBufferArea : int * int * int * int * int * int -> unit
Public Shared Sub MoveBufferArea (sourceLeft As Integer, sourceTop As Integer, sourceWidth As Integer, sourceHeight As Integer, targetLeft As Integer, targetTop As Integer)

매개 변수

sourceLeft
Int32

소스 영역의 맨 왼쪽 열입니다.

sourceTop
Int32

소스 영역의 맨 위 행입니다.

sourceWidth
Int32

소스 영역에 있는 열의 수입니다.

sourceHeight
Int32

소스 영역에 있는 행의 수입니다.

targetLeft
Int32

대상 영역의 맨 왼쪽 열입니다.

targetTop
Int32

대상 영역의 맨 위 행입니다.

특성

예외

하나 이상의 매개 변수가 0보다 작습니다.

또는

sourceLeft 또는 targetLeftBufferWidth보다 크거나 같습니다.

또는

sourceTop 또는 targetTopBufferHeight보다 크거나 같습니다.

또는

sourceTop + sourceHeightBufferHeight보다 크거나 같습니다.

또는

sourceLeft + sourceWidthBufferWidth보다 크거나 같습니다.

사용자에게 이 작업을 수행할 권한이 없습니다.

I/O 오류가 발생했습니다.

현재 운영 체제는 Windows가 아닙니다.

설명

대상 및 원본 매개 변수가 현재 화면 버퍼의 경계 밖에 있는 위치를 지정하는 경우 대상 영역 내에 맞는 원본 영역의 부분만 복사됩니다. 즉, 원본 영역이 현재 화면 버퍼에 맞게 잘립니다.

메서드는 MoveBufferArea 원본 영역을 대상 영역에 복사합니다. 대상 영역이 원본 영역과 교차하지 않으면 원본 영역은 현재 전경색과 배경색을 사용하여 공백으로 채워집니다. 그렇지 않으면 원본 영역의 교차된 부분이 채워지지 않습니다.

적용 대상

MoveBufferArea(Int32, Int32, Int32, Int32, Int32, Int32, Char, ConsoleColor, ConsoleColor)

화면 버퍼의 지정한 소스 영역을 지정한 대상 영역에 복사합니다.

public:
 static void MoveBufferArea(int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop, char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static void MoveBufferArea (int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop, char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor);
public static void MoveBufferArea (int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop, char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member MoveBufferArea : int * int * int * int * int * int * char * ConsoleColor * ConsoleColor -> unit
static member MoveBufferArea : int * int * int * int * int * int * char * ConsoleColor * ConsoleColor -> unit
Public Shared Sub MoveBufferArea (sourceLeft As Integer, sourceTop As Integer, sourceWidth As Integer, sourceHeight As Integer, targetLeft As Integer, targetTop As Integer, sourceChar As Char, sourceForeColor As ConsoleColor, sourceBackColor As ConsoleColor)

매개 변수

sourceLeft
Int32

소스 영역의 맨 왼쪽 열입니다.

sourceTop
Int32

소스 영역의 맨 위 행입니다.

sourceWidth
Int32

소스 영역에 있는 열의 수입니다.

sourceHeight
Int32

소스 영역에 있는 행의 수입니다.

targetLeft
Int32

대상 영역의 맨 왼쪽 열입니다.

targetTop
Int32

대상 영역의 맨 위 행입니다.

sourceChar
Char

소스 영역을 채우는 데 사용되는 문자입니다.

sourceForeColor
ConsoleColor

소스 영역을 채우는 데 사용되는 전경색입니다.

sourceBackColor
ConsoleColor

소스 영역을 채우는 데 사용되는 배경색입니다.

특성

예외

하나 이상의 매개 변수가 0보다 작습니다.

또는

sourceLeft 또는 targetLeftBufferWidth보다 크거나 같습니다.

또는

sourceTop 또는 targetTopBufferHeight보다 크거나 같습니다.

또는

sourceTop + sourceHeightBufferHeight보다 크거나 같습니다.

또는

sourceLeft + sourceWidthBufferWidth보다 크거나 같습니다.

색 매개 변수 중 하나 또는 둘 다가 ConsoleColor 열거형의 멤버가 아닙니다.

사용자에게 이 작업을 수행할 권한이 없습니다.

I/O 오류가 발생했습니다.

현재 운영 체제는 Windows가 아닙니다.

설명

대상 및 원본 매개 변수가 현재 화면 버퍼의 경계를 벗어난 위치를 지정하는 경우 대상 영역 내에 맞는 원본 영역의 부분만 복사됩니다. 즉, 원본 영역이 현재 화면 버퍼에 맞게 잘립니다.

메서드는 MoveBufferArea 원본 영역을 대상 영역에 복사합니다. 대상 영역이 원본 영역과 교차하지 않으면 원본 영역은 지정 sourceChar한 색 sourceForeColorsourceBackColor. 그렇지 않으면 원본 영역의 교차된 부분이 채워지지 않습니다.

메서드는 MoveBufferArea 0인 sourceHeight 경우 sourceWidth 아무 작업도 수행하지 않습니다.

적용 대상