Method Ellipsis
- Namespace
- Sisk.Documenting.Html
- Assembly
- Sisk.Documenting.Html.dll
Ellipsis(string?, int)
Truncates a string to the specified size, appending an ellipsis if necessary.
protected string? Ellipsis(string? s, int size)
Parameters
s
stringThe string to truncate, or null for no truncation.
size
intThe maximum length of the string, including the ellipsis.
Returns
- string
The truncated string, or the original string if it is already within the size limit, or null if the input string is null.