TextHelperLimitLength Method (String, Int32, CutTextEnum) |
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,
CutTextEnum cutLocation
)
Parameters
- text
- Type: SystemString
Text to trim - maxLength
- Type: SystemInt32
Max length - cutLocation
- Type: CMS.HelpersCutTextEnum
Location in the text where the cut of extra text occurs
Return Value
Type:
String
See Also