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