S&box Wiki

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

Page Links


Special Pages


Wikis

?

Render Time: 110ms

DB GetPage 98
Generate Html 0
SaveChanges (1) 9
Render Body 0
Render Sidebar 0