StringUtilsTruncate Method |
Truncates a string to a maximum length.
Namespace: PDTec.IceNet.Web.UtilsAssembly: PDTec.IceNet.Web (in PDTec.IceNet.Web.dll) Version: 6.0.0.0 (6.0.6225.27214)
Syntaxpublic 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:
StringThe input string, truncated to
length characters.
See Also