center text in c# code example
Example: c# center text
// Console app: center text
Console.WriteLine(String.Format("{0," + Console.WindowWidth / 2 + "}", "TEXT"));
// Console app: center text
Console.WriteLine(String.Format("{0," + Console.WindowWidth / 2 + "}", "TEXT"));