Click or drag to resize
TextHelperLimitLength Method (String, Int32, CutTextEnum)
Limits the string length.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax
C#
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: String
See Also