Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: ConsoleColoredString Replace(char, char)

Declaration

public ConsoleColoredString Replace(
    char oldChar,
    char newChar
)

Summary

Returns a new ConsoleColoredString in which every occurrence of oldChar is replaced with newChar while each character’s color remains unchanged.

Parameters

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

Returns

The new string after replacements.