Shorten returns the first (x) characters of a string
Namespace: DotNetNuke.Common.UtilitiesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static string Shorten( string txt, int length, string suffix ) |
Visual Basic |
---|
Public Shared Function Shorten ( txt As String, length As Integer, suffix As String ) As String |
Parameters
- txt
- Type: System..::..String
The text to reduces
- length
- Type: System..::..Int32
The max number of characters to return
- suffix
- Type: System..::..String
An optional suffic to append to the shortened string