Console.MoveBufferArea メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したコピー先領域に、画面バッファーの指定したソース領域をコピーします。
オーバーロード
| 名前 | 説明 |
|---|---|
| MoveBufferArea(Int32, Int32, Int32, Int32, Int32, Int32, Char, ConsoleColor, ConsoleColor) |
指定したコピー先領域に、画面バッファーの指定したソース領域をコピーします。 |
| MoveBufferArea(Int32, Int32, Int32, Int32, Int32, Int32) |
指定したコピー先領域に、画面バッファーの指定したソース領域をコピーします。 |
MoveBufferArea(Int32, Int32, Int32, Int32, Int32, Int32, Char, ConsoleColor, ConsoleColor)
- ソース:
- Console.cs
- ソース:
- Console.cs
- ソース:
- Console.cs
- ソース:
- Console.cs
- ソース:
- Console.cs
指定したコピー先領域に、画面バッファーの指定したソース領域をコピーします。
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
ソース領域の塗りつぶしに使用する背景色。
- 属性
例外
1 つ以上のパラメーターが 0 未満です。
-又は-
sourceLeft または targetLeft が BufferWidth以上です。
-又は-
sourceTop または targetTop が BufferHeight以上です。
-又は-
sourceTop
+
sourceHeight が BufferHeight 以上です。
-又は-
sourceLeft
+
sourceWidth が BufferWidth 以上です。
色パラメーターの一方または両方が、 ConsoleColor 列挙体のメンバーではありません。
ユーザーにはこの操作を実行する権限がありません。
I/O エラーが発生しました。
現在のオペレーティング システムは Windows ではありません。
注釈
コピー先パラメーターとソース パラメーターで、現在の画面バッファーの境界を超える位置を指定した場合、コピー先領域に収まるソース領域の部分のみがコピーされます。 つまり、現在の画面バッファーに合わせてソース領域がクリップされます。
MoveBufferAreaメソッドは、コピー元領域をコピー先領域にコピーします。 コピー先領域がソース領域と交差しない場合、ソース領域は、sourceForeColorおよびsourceBackColorで指定された色を使用して、sourceCharで指定された文字で塗りつぶされます。 それ以外の場合、ソース領域の交差部分は塗りつぶされません。
sourceWidthまたはsourceHeightが 0 の場合、MoveBufferArea メソッドは操作を実行しません。
適用対象
MoveBufferArea(Int32, Int32, Int32, Int32, Int32, Int32)
- ソース:
- Console.cs
- ソース:
- Console.cs
- ソース:
- Console.cs
- ソース:
- Console.cs
- ソース:
- Console.cs
指定したコピー先領域に、画面バッファーの指定したソース領域をコピーします。
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
移動先領域の一番上の行。
- 属性
例外
1 つ以上のパラメーターが 0 未満です。
-又は-
sourceLeft または targetLeft が BufferWidth以上です。
-又は-
sourceTop または targetTop が BufferHeight以上です。
-又は-
sourceTop
+
sourceHeight が BufferHeight 以上です。
-又は-
sourceLeft
+
sourceWidth が BufferWidth 以上です。
ユーザーにはこの操作を実行する権限がありません。
I/O エラーが発生しました。
現在のオペレーティング システムは Windows ではありません。
注釈
コピー先パラメーターとソース パラメーターで、現在の画面バッファーの境界の外側にある位置を指定した場合、コピー先領域に収まるソース領域の部分のみがコピーされます。 つまり、現在の画面バッファーに合わせてソース領域がクリップされます。
MoveBufferAreaメソッドは、コピー元領域をコピー先領域にコピーします。 コピー先領域がソース領域と交差していない場合、ソース領域は、現在の前景色と背景色を使用して空白で塗りつぶされます。 それ以外の場合、ソース領域の交差部分は塗りつぶされません。