PeachPDF
PeachPDF.Layout.IContainer
IContainer.ClampLines(int, string) Method
Truncates this container’s own text after lines lines, marking the cut with
an ellipsis (overflow: hidden + line-clamp). Applies only when this container’s
own terminal content is text. By default the cut is marked with the usual “…”; pass
ellipsis for a custom marker instead (e.g. " [more]"), or
"" for no marker at all - the text is still cut at lines lines, just
with nothing appended (block-ellipsis: none).
PeachPDF.Layout.IContainer ClampLines(int lines, string? ellipsis=null);
Parameters
lines System.Int32
ellipsis System.String