/// <summary> /// Splits the given the text with the specified length. /// </summary> /// <param name="text">String to be shortened.</param> /// <param name="length">Length of the new string.</param> /// <param name="end">Inserts to the end of result text. Default is '...'.</param> /// <returns></returns> public static string SplitText(string text, int length, string end) { return(CharacterReplace.SplitText(text, length, end)); }
/// <summary> /// Splits the given the text with the specified length. /// </summary> /// <param name="text">String to be shortened.</param> /// <param name="length">Length of the new string.</param> /// <returns></returns> public static string SplitText(string text, int length) { return(CharacterReplace.SplitText(text, length, "...")); }