Home > Net >  C # console access to current console foreground and background colors
C # console access to current console foreground and background colors

Time:11-07

As title, c # console how to obtain the current console foreground and background colors?

CodePudding user response:

The Console. The BackgroundColor
The Console. ForegroundColor

CodePudding user response:

This is not something we can directly use?

CodePudding user response:

The Console. The BackgroundColor

The rest of the things, their name, a learning method is fast, ok see you commonly used things a little, scroll, look at those things, those things used,
Used to check the MSDN

Such as String, int you can spot

CodePudding user response:

Reference: https://www.cnblogs.com/txw1958/archive/2012/12/07/csharp-console-color.html
  •  Tags:  
  • C#
  • Related