MagicCMS Documentation

StringHtmlExtensions..::..Truncate Method (String, Int32)

Truncates text to a number of characters

Namespace:  System
Assembly:  MagicCMS.4.5 (in MagicCMS.4.5.dll)

Syntax


public static string Truncate(
	this string text,
	int maxCharacters
)

Parameters

text
Type: String
The text.
maxCharacters
Type: Int32
The maximum characters.

Return Value

Truncated text.