FilePathTrimFileName Method
Returns a file name, for display purposes, of the specified length using "..." to indicate a longer name.
Namespace: Gemstone.IOAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public static string TrimFileName(
string filePath,
int length
)
Public Shared Function TrimFileName (
filePath As String,
length As Integer
) As String
public:
static String^ TrimFileName(
String^ filePath,
int length
)
Gemstone.IO.FilePath.TrimFileName = function(filePath, length);
- filePath String
- The file path to be trimmed.
- length Int32
- The maximum length of the trimmed file path.
StringTrimmed file path.
Minimum value for the length parameter is 12. 12 will be used for any value
specified as less than 12.