Encapsulates a string in which each character can have an associated
.
char | |
Returns the character at the specified index. |
ConsoleColoredString | Color(ConsoleColor? foreground) |
Changes the foreground colors (but not the background colors) of every character in the current string to the
specified console color. |
ConsoleColoredString | Color(char character, ConsoleColor? foreground) |
Changes the foreground colors (but not the background colors) of every occurrence of character in the current string to the specified console color. |
ConsoleColoredString | Color(ConsoleColor? foreground, ConsoleColor? background) |
Changes the colors of every character in the current string to the specified set of console colors. |
ConsoleColoredString | Color(char character, ConsoleColor? foreground, ConsoleColor? background) |
Changes the colors of every occurrence of character in the current string to the specified
set of console colors. |
ConsoleColoredString | |
Changes the background colors (but not the foreground colors) of every character in the current string to the
specified console color. |
ConsoleColoredString | |
Changes the background colors of every character in the current string to the specified console color only
where there isn’t already a background color defined. |
ConsoleColoredString | |
Colors a range of characters beginning at a specified index within the current string in a specified
foreground color. |
ConsoleColoredString | |
Colors the specified range within the current string in a specified foreground color. |
ConsoleColoredString | ColorSubstring(int index, ConsoleColor? foreground, ConsoleColor? background) |
Colors a range of characters beginning at a specified index within the current string in the specified colors. |
ConsoleColoredString | ColorSubstring(int index, int length, ConsoleColor? foreground, ConsoleColor? background) |
Colors the specified range within the current string in the specified colors. |
ConsoleColoredString | |
Colors a range of characters beginning at a specified index within the current string in a specified
background color. |
ConsoleColoredString | |
Colors the specified range within the current string in a specified background color. |
ConsoleColoredString | ColorWhereNull(ConsoleColor foreground, ConsoleColor? background = null) |
Changes the colors of every character in the current string to the specified console color only where there
isn’t already a color defined. |
ConsoleColoredString | Fmt(params object[] args) | Equivalent to ConsoleColoredString.Format(ConsoleColoredString, params object[]). |
ConsoleColoredString | Fmt(IFormatProvider provider, params object[] args) | Equivalent to ConsoleColoredString.Format(ConsoleColoredString, IFormatProvider, params object[]). |
IEnumerable<object> | |
Formats the specified objects into this format string. The result is an enumerable collection which enumerates
parts of the format string interspersed with the arguments as appropriate. |
IEnumerable<object> | |
ConsoleColor?[] | |
Returns an array describing the background color of every character in the current string. |
ConsoleColor?[] | |
Returns an array describing the foreground color of every character in the current string. |
IEnumerator<ConsoleColoredChar> | | Implements IEnumerable<T>.GetEnumerator. |
int | | Equivalent to string.IndexOf(char). |
int | | Equivalent to string.IndexOf(string). |
int | IndexOf(char value, int startIndex) | Equivalent to string.IndexOf(char, int). |
int | IndexOf(string value, int startIndex) | Equivalent to string.IndexOf(string, int). |
int | IndexOf(string value, StringComparison comparisonType) | Equivalent to string.IndexOf(string, StringComparison). |
int | IndexOf(char value, int startIndex, int count) | Equivalent to string.IndexOf(char, int, int). |
int | IndexOf(string value, int startIndex, int count) | Equivalent to string.IndexOf(string, int, int). |
int | IndexOf(string value, int startIndex, StringComparison comparisonType) | Equivalent to string.IndexOf(string, int, StringComparison). |
int | IndexOf(string value, int startIndex, int count, StringComparison comparisonType) | Equivalent to string.IndexOf(string, int, int, StringComparison). |
ConsoleColoredString | |
Returns a new string in which a specified string is inserted at a specified index position in this instance. |
ConsoleColoredString | |
Returns a new string that right-aligns the characters in this instance by padding them with spaces on the
left, for a specified total length. |
ConsoleColoredString | |
Returns a new string that right-aligns the characters in this instance by padding them on the left with a
specified colored character, for a specified total length. |
ConsoleColoredString | |
Returns a new string that left-aligns the characters in this instance by padding them with spaces on the
right, for a specified total length. |
ConsoleColoredString | |
Returns a new string that left-aligns the characters in this instance by padding them on the right with a
specified colored character, for a specified total length. |
ConsoleColoredString | |
Returns a new ConsoleColoredString in which all characters from the specified startIndex onwards have been removed. |
ConsoleColoredString | Remove(int startIndex, int count) |
Returns a new ConsoleColoredString in which the specified range of characters has been removed. |
ConsoleColoredString | Replace(char oldChar, char newChar) |
Returns a new ConsoleColoredString in which every occurrence of oldChar is
replaced with newChar while each character’s color remains unchanged. |
ConsoleColoredString | |
Returns a new ConsoleColoredString in which every occurrence of oldChar is
replaced with the newChar, overwriting its color as well. |
ConsoleColoredString | |
Returns a new ConsoleColoredString in which every occurrence of the text in oldValue is replaced with a new colored string. |
ConsoleColoredString | ReplaceText(string oldValue, string newValue, StringComparison comparison = Ordinal) |
Returns a new ConsoleColoredString in which every occurrence of the text in oldValue is replaced with the text in newValue colored by the color of the first
character in each match. |
IEnumerable<ConsoleColoredString> | Split(string[] separator, int? count = null, StringSplitOptions options = None) |
Returns a string array that contains the substrings in this ConsoleColoredString that are
delimited by elements of a specified string array. Parameters specify the maximum number of substrings to
return and whether to return empty array elements. |
ConsoleColoredString | |
Retrieves a substring from this instance. The substring starts at a specified character position. |
ConsoleColoredString | |
Retrieves a substring from this instance. The substring starts at a specified character position and has a
specified length. |
string | | Returns the raw text of this ConsoleColoredString by discarding all the color information. |