Console.MoveBufferArea Metoda

Definicja

Kopiuje określony obszar źródłowy buforu ekranu do określonego obszaru docelowego.

Przeciążenia

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

Kopiuje określony obszar źródłowy buforu ekranu do określonego obszaru docelowego.

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

Kopiuje określony obszar źródłowy buforu ekranu do określonego obszaru docelowego.

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

Źródło:
Console.cs
Źródło:
Console.cs
Źródło:
Console.cs

Kopiuje określony obszar źródłowy buforu ekranu do określonego obszaru docelowego.

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)

Parametry

sourceLeft
Int32

Najbardziej lewa kolumna obszaru źródłowego.

sourceTop
Int32

Najwyższy wiersz obszaru źródłowego.

sourceWidth
Int32

Liczba kolumn w obszarze źródłowym.

sourceHeight
Int32

Liczba wierszy w obszarze źródłowym.

targetLeft
Int32

Najbardziej lewa kolumna obszaru docelowego.

targetTop
Int32

Najwyższy wiersz obszaru docelowego.

Atrybuty

Wyjątki

Co najmniej jeden z parametrów jest mniejszy niż zero.

-lub-

sourceLeft lub targetLeft jest większe niż lub równe BufferWidth.

-lub-

sourceTop lub targetTop jest większe niż lub równe BufferHeight.

-lub-

sourceTop + sourceHeight jest większe niż lub równe BufferHeight.

-lub-

sourceLeft + sourceWidth jest większe niż lub równe BufferWidth.

Użytkownik nie ma uprawnienia do wykonania tej czynności.

Wystąpił błąd we/wy.

Bieżący system operacyjny nie jest systemem Windows.

Uwagi

Jeśli parametry docelowe i źródłowe określą położenie znajdujące się poza granicami bieżącego buforu ekranu, kopiowany jest tylko część obszaru źródłowego, która mieści się w obszarze docelowym. Oznacza to, że obszar źródłowy jest przycięty do bieżącego buforu ekranu.

Metoda MoveBufferArea kopiuje obszar źródłowy do obszaru docelowego. Jeśli obszar docelowy nie przecina obszaru źródłowego, obszar źródłowy jest wypełniony pustymi wartościami przy użyciu bieżącego pierwszego planu i kolorów tła. W przeciwnym razie część przecinana obszaru źródłowego nie jest wypełniona.

Dotyczy

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

Źródło:
Console.cs
Źródło:
Console.cs
Źródło:
Console.cs

Kopiuje określony obszar źródłowy buforu ekranu do określonego obszaru docelowego.

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)

Parametry

sourceLeft
Int32

Najbardziej lewa kolumna obszaru źródłowego.

sourceTop
Int32

Najwyższy wiersz obszaru źródłowego.

sourceWidth
Int32

Liczba kolumn w obszarze źródłowym.

sourceHeight
Int32

Liczba wierszy w obszarze źródłowym.

targetLeft
Int32

Najbardziej lewa kolumna obszaru docelowego.

targetTop
Int32

Najwyższy wiersz obszaru docelowego.

sourceChar
Char

Znak używany do wypełnienia obszaru źródłowego.

sourceForeColor
ConsoleColor

Kolor pierwszego planu używany do wypełnienia obszaru źródłowego.

sourceBackColor
ConsoleColor

Kolor tła używany do wypełnienia obszaru źródłowego.

Atrybuty

Wyjątki

Co najmniej jeden z parametrów jest mniejszy niż zero.

-lub-

sourceLeft lub targetLeft jest większe niż lub równe BufferWidth.

-lub-

sourceTop lub targetTop jest większe niż lub równe BufferHeight.

-lub-

sourceTop + sourceHeight jest większe niż lub równe BufferHeight.

-lub-

sourceLeft + sourceWidth jest większe niż lub równe BufferWidth.

Jeden lub oba parametry koloru nie są elementem członkowskim ConsoleColor wyliczenia.

Użytkownik nie ma uprawnienia do wykonania tej czynności.

Wystąpił błąd we/wy.

Bieżący system operacyjny nie jest systemem Windows.

Uwagi

Jeśli parametry docelowe i źródłowe określą położenie znajdujące się poza granicami bieżącego buforu ekranu, kopiowany jest tylko część obszaru źródłowego mieszczącego się w obszarze docelowym. Oznacza to, że obszar źródłowy jest przycięty do bieżącego buforu ekranu.

Metoda MoveBufferArea kopiuje obszar źródłowy do obszaru docelowego. Jeśli obszar docelowy nie przecina obszaru źródłowego, obszar źródłowy jest wypełniony znakiem określonym przez sourceChar, przy użyciu kolorów określonych przez sourceForeColor i sourceBackColor. W przeciwnym razie część przecinana obszaru źródłowego nie jest wypełniona.

Metoda MoveBufferArea nie wykonuje operacji, jeśli sourceWidth lub sourceHeight jest zero.

Dotyczy