Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: ConsoleColoredString Replace(char, ConsoleColoredChar)

Declaration

public ConsoleColoredString Replace(
    char oldChar,
    ConsoleColoredChar newChar
)

Summary

Returns a new ConsoleColoredString in which every occurrence of oldChar is replaced with the newChar, overwriting its color as well.

Parameters

charoldChar The character to search for.
ConsoleColoredCharnewChar The colored character to replace every occurrence of oldChar with.

Returns

The new string after replacements.