Click or drag to resize
StringUtilsTruncate Method
Truncates a string to a maximum length.

Namespace: PDTec.IceNet.Web.Utils
Assembly: PDTec.IceNet.Web (in PDTec.IceNet.Web.dll) Version: 6.0.0.0 (6.0.6225.27214)
Syntax
C#
public static string Truncate(
	string value,
	int length
)

Parameters

value
Type: SystemString
The string to truncate.
length
Type: SystemInt32
The maximum length of the returned string.

Return Value

Type: String
The input string, truncated to length characters.
See Also