Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: ConsoleColoredString ColorBackground(ConsoleColor?)

Declaration

public ConsoleColoredString ColorBackground(
    ConsoleColor? background
)

Summary

Changes the background colors (but not the foreground colors) of every character in the current string to the specified console color.

Parameters

ConsoleColor?background The background color to set the string to, or null to use the console’s default background color.

Returns

The current string but with the background colors changed.