Click or drag to resize
TransformationHelperLimitLength Method (Object, Int32, String)
Limits length of the given plain text.

Namespace: CMS.Controls
Assembly: CMS.Controls (in CMS.Controls.dll) Version: 9.0.0
Syntax
C#
public string LimitLength(
	Object textObj,
	int maxLength,
	string padString
)

Parameters

textObj
Type: SystemObject
Plain text to limit (Text containing HTML tags is not supported)
maxLength
Type: SystemInt32
Maximum text length
padString
Type: SystemString
Trimming postfix

Return Value

Type: String
See Also