Sisk

Method

HtmlDocumentationExporter.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.

C#
protected string? Ellipsis(string? s, int size)

Parameters #

s string?

The string to truncate, or null for no truncation.

size int

The 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.

Type to search the documentation and the API reference.