C# Class 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.
Afficher le fichier Open project: hapm/IrcShark

Méthodes publiques

Свойство Type Description
BackgroundColor ConsoleColor
ForegroundColor ConsoleColor
Text string

Méthodes publiques

Méthode Description
WriteRequest ( string text, ConsoleColor fgColor, ConsoleColor bgColor ) : System

Initializes a new instance of the WriteRequest struct.

Method Details

WriteRequest() public méthode

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.
Résultat System

Property Details

BackgroundColor public_oe property

The color for the text background.
public ConsoleColor BackgroundColor
Résultat ConsoleColor

ForegroundColor public_oe property

The color for the text.
public ConsoleColor ForegroundColor
Résultat ConsoleColor

Text public_oe property

The text to write.
public string Text
Résultat string