This function has nothing special, that is, you can take a string of a certain length. Maybe a small feature is that Lin is byte, solving the Chinese characters and English bytes. Different problems, #REGION characters clipping function string public static string CutString (string inputString, int len) {ASCIIEncoding ascii = new ASCIIEncoding (); int tempLen = 0; string tempString = ""; byte [] s = ascii.GetBytes (inputString); for (int i = 0; i len) Break;} // If you cut, add half a omitted number byte [] mybyte = system.text.Encoding.default.getBytes (InputString); if (Mybyte.length > LEN) Tempstring = "..."; return tempstring;} # endregion