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
sstringThe string to truncate, or null for no truncation.
sizeintThe 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.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語