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 |
| Constructor: ConsoleColoredString(string, ConsoleColor?[], ConsoleColor?[])Declarationpublic ConsoleColoredString(
string input,
ConsoleColor?[] foregroundColors,
ConsoleColor?[] backgroundColors = null
) Summary
Constructs a ConsoleColoredString with the specified text and the specified colors for each
character. Parametersstring | input |
The string containing the text to initialize this ConsoleColoredString to. The length of this
string must match the number of elements in foregroundColors. | ConsoleColor?[] | foregroundColors |
The foreground colors to assign to each character in the string. The length of this array must match the
number of characters in input. | ConsoleColor?[] | backgroundColors |
The background colors to assign to each character in the string. The length of this array must match the
number of characters in input. If null , the default color is used. |
|