S&box Wiki

Sandbox.StringX.Truncate

Sandbox.StringX.Truncate

Syntax

static string Truncate( string str, int maxLength, string appendage )

Description

If the string is longer than this amount of characters then truncate it If appendage is defined, it will be appended to the end of truncated strings (ie, "..")

Arguments

string str
int maxLength
string appendage

Returns

string

Special Pages


Wikis

?

Render Time: 27ms

DB GetPage 19
Generate Html 0
SaveChanges (1) 5
Render Body 0
Render Sidebar 0