C# Класс System.WindowsConsoleDriver

Наследование: IConsoleDriver
Показать файл Открыть проект

Открытые методы

Метод Описание
Beep ( int frequency, int duration ) : void
Clear ( ) : void
Init ( ) : void
MoveBufferArea ( int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop, Char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor ) : void
ReadKey ( bool intercept ) : ConsoleKeyInfo
ReadLine ( ) : string
ResetColor ( ) : void
SetBufferSize ( int width, int height ) : void
SetCursorPosition ( int left, int top ) : void
SetWindowPosition ( int left, int top ) : void
SetWindowSize ( int width, int height ) : void
WindowsConsoleDriver ( ) : System.Runtime.InteropServices

Приватные методы

Метод Описание
FillConsoleOutputAttribute ( IntPtr handle, short c, int size, Coord coord, int &written ) : bool
FillConsoleOutputCharacter ( IntPtr handle, char c, int size, Coord coord, int &written ) : bool
GetAttrBackground ( int attr, ConsoleColor color ) : short
GetAttrForeground ( int attr, ConsoleColor color ) : short
GetBackground ( short attr ) : ConsoleColor
GetConsoleCursorInfo ( IntPtr handle, ConsoleCursorInfo &info ) : bool
GetConsoleMode ( IntPtr handle, int &mode ) : bool
GetConsoleScreenBufferInfo ( IntPtr handle, ConsoleScreenBufferInfo &info ) : bool
GetConsoleTitle ( StringBuilder sb, int size ) : int
GetForeground ( short attr ) : ConsoleColor
GetKeyState ( int virtKey ) : short
GetLargestConsoleWindowSize ( IntPtr handle ) : Coord
GetStdHandle ( Handles handle ) : IntPtr
PeekConsoleInput ( IntPtr handle, InputRecord &record, int length, int &eventsRead ) : bool
ReadConsoleInput ( IntPtr handle, InputRecord &record, int length, int &nread ) : bool
ReadConsoleOutput ( IntPtr handle, void buffer, Coord bsize, Coord bpos, SmallRect &region ) : bool
SetConsoleCursorInfo ( IntPtr handle, ConsoleCursorInfo &info ) : bool
SetConsoleCursorPosition ( IntPtr handle, Coord coord ) : bool
SetConsoleMode ( IntPtr handle, int mode ) : bool
SetConsoleScreenBufferSize ( IntPtr handle, Coord newSize ) : bool
SetConsoleTextAttribute ( IntPtr handle, short attribute ) : bool
SetConsoleTitle ( string title ) : bool
SetConsoleWindowInfo ( IntPtr handle, bool absolute, SmallRect &rect ) : bool
WriteConsoleOutput ( IntPtr handle, CharInfo buffer, Coord bsize, Coord bpos, SmallRect &region ) : bool
_Beep ( int frequency, int duration ) : void

Описание методов

Beep() публичный метод

public Beep ( int frequency, int duration ) : void
frequency int
duration int
Результат void

Clear() публичный метод

public Clear ( ) : void
Результат void

Init() публичный метод

public Init ( ) : void
Результат void

MoveBufferArea() публичный метод

public MoveBufferArea ( int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop, Char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor ) : void
sourceLeft int
sourceTop int
sourceWidth int
sourceHeight int
targetLeft int
targetTop int
sourceChar Char
sourceForeColor ConsoleColor
sourceBackColor ConsoleColor
Результат void

ReadKey() публичный метод

public ReadKey ( bool intercept ) : ConsoleKeyInfo
intercept bool
Результат ConsoleKeyInfo

ReadLine() публичный метод

public ReadLine ( ) : string
Результат string

ResetColor() публичный метод

public ResetColor ( ) : void
Результат void

SetBufferSize() публичный метод

public SetBufferSize ( int width, int height ) : void
width int
height int
Результат void

SetCursorPosition() публичный метод

public SetCursorPosition ( int left, int top ) : void
left int
top int
Результат void

SetWindowPosition() публичный метод

public SetWindowPosition ( int left, int top ) : void
left int
top int
Результат void

SetWindowSize() публичный метод

public SetWindowSize ( int width, int height ) : void
width int
height int
Результат void

WindowsConsoleDriver() публичный метод

public WindowsConsoleDriver ( ) : System.Runtime.InteropServices
Результат System.Runtime.InteropServices