indent text in console applications
Published: 25. November 2011 | Updated: 25. November 2011License: Microsoft Public License (MS-PL)
Categories: Consoles
Tags: C# Console Text
Snippet shows how to indent text in console applications using the second part of format definition: {0,-10} and {1,10}
Console.WriteLine("Column1: {0,-10} Column2: {1,10}", 156497, 790415);Console Output:
Column1: 156497 Column2: 790415
| Send us feedback about this snippet » |





