Click or drag to resize

FilePathTrimFileName Method

Returns a file name, for display purposes, of the specified length using "..." to indicate a longer name.

Namespace: GSF.IO
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.276-beta+3dd4b43be3e31323696af3ab6b14b705e6420d69
Syntax
public static string TrimFileName(
	string filePath,
	int length
)
View Source

Parameters

filePath  String
The file path to be trimmed.
length  Int32
The maximum length of the trimmed file path.

Return Value

String
Trimmed file path.
Remarks
Minimum value for the length parameter is 12. 12 will be used for any value specified as less than 12.
See Also