Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Align String with Spaces [C#]

Console.WriteLine("-------------------------------");
Console.WriteLine("First Name | Last Name  |   Age");
Console.WriteLine("-------------------------------");
Console.WriteLine(String.Format("{0,-10} | {1,-10} | {2,5}", "Bill", "Gates", 51));
Console.WriteLine(String.Format("{0,-10} | {1,-10} | {2,5}", "Edna", "Parker", 114));
Console.WriteLine(String.Format("{0,-10} | {1,-10} | {2,5}", "Johnny", "Depp", 44));
Console.WriteLine("-------------------------------");
Comment

PREVIOUS NEXT
Code Example
Csharp :: stateteach.net 
Csharp :: most popular products code using asp.net core in visual studio code 
Csharp :: nullable IList 
Csharp :: leave two decimal in double c# 
Csharp :: C#$ 
Csharp :: how to colapse all methods visual studio 
Csharp :: player leaning unity 
Csharp :: c# result set from stored procedure 
Csharp :: hacking 
Csharp :: WixSharp-FirewallException 
Csharp :: windows forms picturebox click event 
Csharp :: how to trigger event when a com device is connected in c# 
Csharp :: c# webbrowser control append 
Csharp :: c# inline 
Csharp :: unity mass unit 
Csharp :: windows form button image size 
Csharp :: how to use external resource.resx file in c# 
Csharp :: dotnet DB context register 
Csharp :: find first occurrence of character in string 
Csharp :: maximum sum of non-adjacent 
Csharp :: convert memorystream to byte array c# 
Csharp :: appsettings in console application c# 
Csharp :: parsons it solutions 
Csharp :: keyboard hook c# 
Csharp :: How to use multiple Commands for one ViewModel 
Csharp :: population of the world 
Html :: favicon html 
Html :: html input regex only numbers 
Html :: html set theme color 
Html :: html filter file upload 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =