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: 7.2.0.0 (7.2.7583.15464)
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