TextHelperLimitLength Method (String, Int32, CutTextEnum) |
Limits the string length.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax public 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:
StringSee Also