StringHelper..::..Truncate Method

Truncates the string to a specified length and replace the truncated to a ...

Namespace:  Core
Assembly:  Core (in Core.dll)

Syntax


public static string Truncate(
	string text,
	int maxLength
)

Parameters

text
Type: String
string that will be truncated
maxLength
Type: Int32
total length of characters to maintain before the truncate happens

Return Value

truncated string