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
C#
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.
See Also
StringHtmlExtensions Class
Truncate Overload
System Namespace