Welcome to WindowsClient.net | Sign in | Join

Zuker On Foundations

The realm of .NET (WPF, WCF and all around)

Sponsors





  • advertise here

Text manipulation - Title Case

A nice way to convert text to title-case using the .NET framework.

Title Case - First Letter Of Every Word Is Upper

CultureInfo.CurrentCulture.TextInfo.ToTitleCase("some text"); //Returns "Some Text"

Note that you should ensure the input passed to the method is all in lower case, otherwise you will encounter scenarios where this would not work.

 

Posted: Jul 22 2008, 07:08 PM by zuker | with no comments
Filed under:

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 

Page view counter