Answers for "C# How to change the text colour?"

C#
0

C# How to change the text colour?

// Change colour of the text

			// This code changes the next text line colour
			Console.ForegroundColor = ConsoleColor.Green;

			// Pay attention that the texts that you want to change colour on
			// Should be in between the 2 codes!
            
			// This code puts the text colour back to normal again
            Console.ResetColor();
Posted by: Guest on February-09-2022

Code answers related to "C# How to change the text colour?"

C# Answers by Framework

Browse Popular Code Answers by Language