Skip to content

6. ScreenColorOption

Enes Okullu edited this page Apr 22, 2024 · 1 revision

ScreenColorOption

It holds ForegroundColor as ConsoleColor and BackgroundColor as ConsoleColor. It has a constructor ScreenColorOption(ConsoleColor foregroundColor, ConsoleColor backgroundColor)

Default screen color options

ScreenColorOptionYellow
  • Black background, yellow text color.
ScreenColorOptionGreen
  • Black background, green text color.
ScreenColorOptionCyan
  • Black background, cyan text color.
ScreenColorOptionDarkYellow
  • Black background, dark yellow text color.

Set screen color

SetScreenColors(ScreenColorOption screenColorOption);

Screenshot 2024-01-17 203822

ShowAvailableColors();

List every color combinations provided by ConsoleColor

Screenshot 2024-01-19 165731

Clone this wiki locally