Click or drag to resize
TextHelper.EnsureMaximumLineLength Method
Limits the line length of given plain text.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static string EnsureMaximumLineLength(
	string text,
	int maxLength,
	string separation = "<span></span>",
	bool encode = false
)

Parameters

text
Type: System.String
Text to process
maxLength
Type: System.Int32
Max line length
separation (Optional)
Type: System.String
String which will be used as line separator
encode (Optional)
Type: System.Boolean
If true, original string will be encoded (all the separators remain un-encoded)

Return Value

Type: String
See Also