TransformationHelper LimitLength Method (Object, Int32, String, Boolean)Kentico 8.1 API Reference
Limits length of the given plain text.

Namespace: CMS.Controls
Assembly: CMS.Controls (in CMS.Controls.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

textObj
Type: OnlineSystem Object
Plain text to limit (Text containing HTML tags is not supported)
maxLength
Type: OnlineSystem Int32
Maximum text length
padString
Type: OnlineSystem String
Trimming postfix
wholeWords
Type: OnlineSystem Boolean
If true, the text won't be cut in the middle of the word

Return Value

Type: OnlineString
See Also