I'm having a hard time in finding a code for auto capitalizes letter for every word. Hope you can help me!
Asked
Active
Viewed 66 times
-4
-
3If you cannot find it, write it! If you then run into trouble we are here to help you. – Peter Bons Aug 12 '17 at 14:32
-
1Possible duplicate of [Make first letter of a string upper case (with maximum performance)](https://stackoverflow.com/questions/4135317/make-first-letter-of-a-string-upper-case-with-maximum-performance) – M3talM0nk3y Aug 12 '17 at 14:37
2 Answers
1
use culture info class :
String test = "HELLO THERE";
string s = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(test.ToLower());
// Hello There

Ankit
- 5,733
- 2
- 22
- 23
0
Are you talking about
Generally, title casing converts the first character of a word to uppercase and the rest of the characters to lowercase. However, this method does not currently provide proper casing to convert a word that is entirely uppercase, such as an acronym. The following table shows the way the method renders several strings.

Shiv Kumar
- 9,599
- 2
- 36
- 38