Convert string to title case. Capitalize the first letters of all words.
Sample code:
//include this
using System.Globalization;
//how to convert from uppercase string to titlecase
string title = "THE TITLE STRING";
TextInfo ti = CultureInfo.CurrentCulture.TextInfo;
title = ti.ToTitleCase(title.ToLower());
//result : "The Title String"
PadLeft/PadRight is padding on the left/Right with spaces or a specified Unicode character for a specified total length.
Example as bellow:
string myString = "";
int myInt = 1;
myString = myInt.ToString().PadLeft(8, '0');
//myString will be 00000001
myString = myInt.ToString().PadRight(8, '0');
//myString will be 10000000