S&box Wiki

Sandbox.StringX.TruncateFilename

Sandbox.StringX.TruncateFilename

Syntax

static string TruncateFilename( 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: 37ms

DB GetPage 28
Generate Html 0
SaveChanges (1) 7
Render Body 0
Render Sidebar 0