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

Summary

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, "..")
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.