Color(character, foreground) Color(foreground, background) Color(character, foreground, background) Format(format, provider, args) IndexOf(value, startIndex, comparisonType) IndexOf(value, startIndex, count, comparisonType) Replace(oldValue, newValue, comparison) Split(separator, count, options)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Method: ConsoleColoredString ColorSubstringBackground(int, int, ConsoleColor?)Declarationpublic ConsoleColoredString ColorSubstringBackground(
int index,
int length,
ConsoleColor? background
) Summary
Colors the specified range within the current string in a specified background color. Parametersint | index |
The index at which to start coloring. | int | length |
The number of characters to color. | ConsoleColor? | background |
The background color to assign to the range of characters, or null to use the console’s default
background color. |
Returns
The current string but with some of the background colors changed. |