Limits the string length.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- text
- Type:
System String
Text to trim
- maxLength
- Type:
System Int32
Max length
- padString (Optional)
- Type:
System String
Trim character
- wholeWords (Optional)
- Type:
System Boolean
If true, the text won't be cut in the middle of the word
- cutLocation (Optional)
- Type: CMS.Helpers CutTextEnum
Location in the text where the cut of extra text occurs
Return Value
Type:![Online Online](./../icons/online_icon.gif)
See Also