Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: ConsoleColoredChar Color(this char, ConsoleColor?, ConsoleColor?)

Declaration

public static ConsoleColoredChar Color(
    this char ch,
    ConsoleColor? foreground,
    ConsoleColor? background = null
)

Summary

Colors the specified character in the specified console color.

Parameters

this charch The character to color.
ConsoleColor?foreground The foreground color to color the character in.
ConsoleColor?background The background color to color the character in.

Returns

A potentially colorful character.