class CharColor

Describes character color information.

This class also holds predfined color constants that can be passed to the Foreground and Background properties. Available color constants are: Black, Red, Blue, Green, Yellow, Magenta, Cyan, Gray, LightGray, LightRed, LightBlue, LightGreen, LightYellow, LightMagenta, LightCyan, White.

Constructors

CharColor ()Constructs a CharColor instance with default colors.
CharColor (const int, const int)Constructs a CharColor instance from a foreground and a background color value.
CharColor (const CharColor)Copy-constructs an instance.

Properties

int Background ()Returns the background color of this instance.
Background (const int)Sets the background color of this instance.
int Foreground ()Returns the foreground color of this instance.
Foreground (const int)Sets the foreground color of this instance.

Reference

method CharColor ()

Constructs a CharColor instance with default colors.


method CharColor (const int foreground, const int background)

Constructs a CharColor instance from a foreground and a background color value.


method CharColor (const CharColor src)

Copy-constructs an instance.


accessor int Background ()

Returns the background color of this instance.


accessor Background (const int c)

Sets the background color of this instance.


accessor int Foreground ()

Returns the foreground color of this instance.


accessor Foreground (const int c)

Sets the foreground color of this instance.