//RawString 为文本内容 Length为只准显示多长字符
public static string getString(string RawString, Int32 Length) { if (RawString.Length <= Length) { return RawString; } else { for (Int32 i = RawString.Length - 1; i >= 0; i--) { if (System.Text.Encoding.GetEncoding("GB2312").GetByteCount(RawString.Substring(0, i)) < Length) { return RawString.Substring(0, i) + "..."; } } return "..."; } }