WikiFunctions.Tools.TitleCaseEN C# (CSharp) Method

TitleCaseEN() public static method

Returns the trimmed input string in Title Case if: string all upper case string all lower case Otherwise returns lower/mixed case words in Title Case and UPPER case in UPPER
public static TitleCaseEN ( string text ) : string
text string the input text
return string
        public static string TitleCaseEN(string text)
        {
            if (text.ToUpper().Equals(text))
                text = text.ToLower();

            return (EnglishCultureTextInfo.ToTitleCase(text.Trim()));
        }
Tools