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
Syntaxpublic static string EllipsisAtStart(
this string path,
int maxCharsToShow,
char kindOfSlashUsed
)
<ExtensionAttribute>
Public Shared Function EllipsisAtStart (
path As String,
maxCharsToShow As Integer,
kindOfSlashUsed As Char
) As String
public:
[ExtensionAttribute]
static String^ EllipsisAtStart(
String^ path,
int maxCharsToShow,
wchar_t kindOfSlashUsed
)
[<ExtensionAttribute>]
static member EllipsisAtStart :
path : string *
maxCharsToShow : int *
kindOfSlashUsed : char -> string
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:
StringUsage 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