Tag Archives: proper case

Make a TextBox convert text into proper case in C#

The example Convert a string to proper case (title case) in C# uses a CultureInfo object’s TextInfo property to convert text into proper case (or title case). There are a couple of tricks and potential problems that you need to … Continue reading

Posted in controls, strings | Tagged , , , , , , , , , , , , , | Leave a comment

Convert a string to proper case (title case) in C#

In proper case (or title case) the first letter of each word is capitalized. This is actually pretty easy once you know where to find the method that converts to proper case. The example uses the following code to convert … Continue reading

Posted in strings | Tagged , , , , , , , , , , , | Leave a comment

Convert between Pascal case, camel case, and proper case method 2 in C#

Like the previous post, Convert between Pascal case, camel case, and proper case in C#, this example shows how to use string extension methods convert strings into various case types. Thanks to Gary Winey for this version. The following ToPascalCase … Continue reading

Posted in extension methods, strings | Tagged , , , , , , , , , , , , , | Leave a comment

Convert between Pascal case, camel case, and proper case in C#

This example uses string extension methods to convert strings between Pascal case, camel case, and proper case. In Pascal case, each word is capitalized as in ThisStringIsPascalCased. In camel case, each word except the first is capitalized as in thisStringIsCamelCased. … Continue reading

Posted in extension methods, strings | Tagged , , , , , , , , , | 5 Comments