StringExtensions.Ellipsis Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Ellipsis(String, Int32)

Trims a string after a specific length and appends the horizontal ellipsis character (U+2026) to the end of the string.

public static string Ellipsis(this string input, int length)

Parameters

input
System.String
length
System.Int32

Returns

System.String

Returns the trimmed string.