Proper Title Case : String Format « Development « VB.Net






Proper Title Case

   

Public Class MainClass
    Public Shared Function ProperCase(ByVal Text As String) As String
        Dim objCulture As New System.Globalization.CultureInfo("en-US")
        Return objCulture.TextInfo.ToTitleCase(Text.ToLower)
    End Function

    Public Shared Sub Main
        System.Console.WriteLine(ProperCase("this Is a Test"))
    End Sub
End Class

   
    
    
  








Related examples in the same category

1.String Format: CurrencyString Format: Currency
2.Double number format: 0:n3Double number format: 0:n3
3.Assume en-US culture and standard format string
4.Format a string with composite string