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