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.
Show file Open project: hapm/IrcShark

Public Properties

Property Type Description
BackgroundColor ConsoleColor
ForegroundColor ConsoleColor
Text string

Public Methods

Method Description
WriteRequest ( string text, ConsoleColor fgColor, ConsoleColor bgColor ) : System

Initializes a new instance of the WriteRequest struct.

Method Details

WriteRequest() public method

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.
return System

Property Details

BackgroundColor public property

The color for the text background.
public ConsoleColor BackgroundColor
return ConsoleColor

ForegroundColor public property

The color for the text.
public ConsoleColor ForegroundColor
return ConsoleColor

Text public property

The text to write.
public string Text
return string