The origin for character cell coordinates in the screen buffer is the upper left corner , and the position of the cursor and the console window are measured relative to that origin 字符单元格在屏幕缓冲区中的坐标原点为左上角,光标和控制台窗口的位置相对于该原点进行计算。
If the screen buffer is larger than the console window , the console automatically displays scroll bars so the console window can be repositioned over the screen buffer area 如果屏幕缓冲区比控制台窗口大,控制台会自动显示滚动条,以使控制台窗口可以在屏幕缓冲区上重新定位。
Text is actually read from or written to streams owned by the console , but appear to be read from or written to an area owned by the console called the screen buffer 文本实际上是从控制台拥有的流进行读取和写入的,但看起来像是在控制台拥有的一个称为屏幕缓冲区的区域中进行读取和写入的。
The console window is also arranged in rows and columns , is less than or equal to the size of the screen buffer , and can be moved to view different areas of the underlying screen buffer 控制台窗口也以行和列的形式进行组织,其大小与屏幕缓冲区相同或者更小,该窗口可进行移动以查看基础屏幕缓冲区的不同区域。
The screen buffer is an attribute of the console , and is organized as a rectangular grid of rows and columns where each grid intersection , or character cell , can contain a character 屏幕缓冲区是控制台的一个属性,以由行和列组成的矩形网格的形式进行组织,其中每个网格交叉位置(字符单元格)都可包含一个字符。
Class enable applications to manipulate the dimensions of the console window and screen buffer ; to move a rectangular area of the screen buffer , which is useful for performing smooth , simple animation ; and to wait while reading console input until a key is pressed 类的新成员使应用程序能够操作控制台窗口和屏幕缓冲区的大小;移动屏幕缓冲区的矩形区域(这对于执行平滑简单的动画很有用) ;并在读取控制台输入时等待,直至按下某个键。
Class also contains methods and properties to get or set the size of the screen buffer , console window , and cursor ; to change the position of the console window and cursor ; to move or clear data in the screen buffer ; to change foreground and background colors ; to change the text displayed in the console title bar ; and to play the sound of a beep 类还提供一些用以执行以下操作的方法和属性:获取或设置屏幕缓冲区、控制台窗口和光标的大小;更改控制台窗口和光标的位置;移动或清除屏幕缓冲区中的数据;更改前景色和背景色;更改显示在控制台标题栏中的文本;以及播放提示音。