Declaration
public ConsoleColoredString Color(
ConsoleColor? foreground,
ConsoleColor? background
)Summary
Changes the colors of every character in the current string to the specified set of console colors.
Parameters
| ConsoleColor? | foreground |
The foreground color to set the string to, or null to use the console’s default foreground color. |
| ConsoleColor? | background |
The background color to set the string to, or null to use the console’s default background color. |
Returns
The current string but with all the colors changed.