Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Convert text to TitleCase

, 23 Feb 2010
Rate this:
Please Sign up or sign in to vote.
also..Syst...
also..
System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("en-US");
<big>System.Globalization.TextInfo myTextInfo = ci.TextInfo;</big>
string sampleStr = "this IS a sample text"; 
string titleStr = myTextInfo.ToTitleCase(sampleStr);
Console.WriteLine(titleStr);
Console.ReadLine();

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Palash Biswas
Software Developer Kovair Inc.
India India
I have started programming in 10 years on Fortran 77.Then it was Cobol,C,C++,JAVA 1.2, ASP,JavaScript. Now it at all C# and .NET Framework, such tehnologies as WCF, ADO.NET, ASP.NET, LINQ, ASP.NET Ajax , FLEX and another.

Comments and Discussions

 
GeneralReason for my vote of 3 Same problem as the original method ... Pinmemberyannduran23-Aug-11 18:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web03 | 2.8.140709.1 | Last Updated 23 Feb 2010
Article Copyright 2010 by Palash Biswas
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid