StringExtensions.Ellipsis Method

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

Ellipsis(string, int)

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
string

Text to trim.

length
int

Number of characters to keep of the text.

Returns

string

Returns the trimmed string.