HTMLHelperLimitLength Method |
Limits the string length.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntaxpublic static string LimitLength(
string text,
int maxLength,
string padString,
bool wholeWords
)
Parameters
- text
- Type: SystemString
Text to trim - maxLength
- Type: SystemInt32
Max length - padString
- Type: SystemString
Trim character - wholeWords
- Type: SystemBoolean
If true, the text won't be cut in the middle of the word
Return Value
Type:
String
See Also