Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: ConsoleColoredString ColorBackgroundWhereNull(ConsoleColor)

Declaration

public ConsoleColoredString ColorBackgroundWhereNull(
    ConsoleColor background
)

Summary

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.

Parameters

ConsoleColorbackground The background color to set the uncolored characters to, or null to use the console’s default background color.

Returns

The current string but with the background colors changed.