public static string GetCutString(string inputstring) { if (inputstring == null) { return(""); } string subname = inputstring; if (CUtility.GetStringVisualLength(subname) > 16) { while (true) { subname = inputstring.Substring(0, subname.Length - 1); int temp = CUtility.GetStringVisualLength(subname); if (temp <= 16) { break; } } } return(subname); }