Click or drag to resize
TextHelperEnsureMaximumLineLength Method (String, Int32, String, Boolean)
Limits the line length of given plain text.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax
C#
public static string EnsureMaximumLineLength(
	string text,
	int maxLength,
	string separation,
	bool encode
)

Parameters

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

Return Value

Type: String
See Also