Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: ConsoleColoredString Color(ConsoleColor?, ConsoleColor?)

Declaration

public ConsoleColoredString Color(
    ConsoleColor? foreground,
    ConsoleColor? background = null
)

Summary

Returns the translation in the specified console color.

Parameters

ConsoleColor?foreground The foreground color in which to color the translation, or null to use the console’s default foreground color.
ConsoleColor?background The background color in which to color the translation, or null to use the console’s default background color.

Returns

A potentially colourful string.