Click or drag to resize
HTMLHelper.LimitLength Method
Limits the string length.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static string LimitLength(
	string text,
	int maxLength,
	string padString,
	bool wholeWords
)

Parameters

text
Type: System.String
Text to trim
maxLength
Type: System.Int32
Max length
padString
Type: System.String
Trim character
wholeWords
Type: System.Boolean
If true, the text won't be cut in the middle of the word

Return Value

Type: String
See Also