Shunde.NET Framework Class Library

TextUtils.CutText Method 

Cuts a string to end at the end of a word. It appends "..." to the end if the text is cut (that is, if length is greater than the length of the string).

public static string CutText(
   String str,
   Int32 length
);

Parameters

String
Int32

Return Value

A string cut at the specified point

See Also

TextUtils Class | Shunde.Utilities Namespace