Appearance
Stop paging
This container is active when its child requires more than one page to draw. Where the content spans multiple pages, only the first page is visible. The remainder of the content (that would normally be visible on subsequent pages), is omitted.
c#
.Padding(25)
.DefaultTextStyle(x => x.FontSize(14))
.Decoration(decoration =>
{
decoration
.Before()
.Text(text =>
{
text.DefaultTextStyle(x => x.SemiBold().FontColor(Colors.Blue.Medium));
text.Span("Page ");
text.CurrentPageNumber();
});
decoration
.Content()
.Column(column =>
{
column.Spacing(25);
column.Item().StopPaging().Text(Placeholders.LoremIpsum());
column.Item().ExtendHorizontal().Height(75).Background(Colors.Grey.Lighten2);
});
});
First, let's analyse the results where the StopPaging
element is NOT applied. Part of the text is moved to the next page:
However, where StopPaging
IS applied, the text that does not fit on the first page, is omitted. This behaviour is evident for all structures that span multiple pages.