C# Класс IrcShark.Extensions.Terminal.ConsoleTerminal.WriteRequest

The WriteRequest struct is used by the ConsoleTerminal to cache requests to the Write method.
The ConsoleTerminal can only write full lines at a time, but if you want to write lines with multible color, you need to use the Write methods what doesn't end a line automatically. Therefor all calls to Write are cached and are done, when an end line is written.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
BackgroundColor ConsoleColor
ForegroundColor ConsoleColor
Text string

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

Метод Описание
WriteRequest ( string text, ConsoleColor fgColor, ConsoleColor bgColor ) : System

Initializes a new instance of the WriteRequest struct.

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

WriteRequest() публичный Метод

Initializes a new instance of the WriteRequest struct.
public WriteRequest ( string text, ConsoleColor fgColor, ConsoleColor bgColor ) : System
text string The text of the request.
fgColor ConsoleColor The foreground color to use.
bgColor ConsoleColor The backgroundcolor to use.
Результат System

Описание свойств

BackgroundColor публичное свойство

The color for the text background.
public ConsoleColor BackgroundColor
Результат ConsoleColor

ForegroundColor публичное свойство

The color for the text.
public ConsoleColor ForegroundColor
Результат ConsoleColor

Text публичное свойство

The text to write.
public string Text
Результат string