Click or drag to resize

PathExtensionsEllipsisAtStart Method

IT Hit User File System
Trims long path string at start, if it exceeds given length. Trimmed string will start from '...' followed by passed kind of slash character.

Namespace:  ITHit.FileSystem.Extensions
Assembly:  ITHit.FileSystem (in ITHit.FileSystem.dll) Version: 9.0.29527.0
Syntax
public static string EllipsisAtStart(
	this string path,
	int maxCharsToShow,
	char kindOfSlashUsed
)

Parameters

path
Type: SystemString
Full path string.
maxCharsToShow
Type: SystemInt32
Max characters count to show.
kindOfSlashUsed
Type: SystemChar
Character used as slash in given path (e.g. '\\' in local path, but '/' in remote path).

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also