Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: ConsoleColoredString(string, ConsoleColor?, ConsoleColor?)

Declaration

public ConsoleColoredString(
    string input,
    ConsoleColor? foreground,
    ConsoleColor? background = null
)

Summary

Constructs a ConsoleColoredString with the specified text and the specified colors.

Parameters

stringinput The string containing the text to initialize this ConsoleColoredString to.
ConsoleColor?foreground The foreground color to assign to the whole string.
ConsoleColor?background The background color to assign to the whole string.