Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: ConsoleColoredString Replace(string, ConsoleColoredString, StringComparison)

Declaration

public ConsoleColoredString Replace(
    string oldValue,
    ConsoleColoredString newValue,
    StringComparison comparison = Ordinal
)

Summary

Returns a new ConsoleColoredString in which every occurrence of the text in oldValue is replaced with a new colored string.

Parameters

stringoldValue The substring to search for.
ConsoleColoredStringnewValue The new colored string to replace every occurrence with.
StringComparisoncomparison A string comparison to use.

Returns

The new string after replacements.