Declaration
public ConsoleColoredString ColorSubstringBackground(
int index,
ConsoleColor? background
)Summary
Colors a range of characters beginning at a specified index within the current string in a specified
background color.
Parameters
| int | index |
The index at which to start coloring. |
| ConsoleColor? | background |
The background color to assign to the characters starting from the character at index, or
null to use the console’s default background color. |
Returns
The current string but with some of the background colors changed.