Skip to content

Skip once

  • This container changes the default rendering behaviour.
  • Its child is not visible on the first occurrence page.
  • If the parent is visible on more than one page, the element is visible on all subsequent pages.
c#
.SkipOnce()

Example:

c#
.RenderDocument(container =>
{
    container.Page(page =>
    {
        // page configuration details

        page.Header().Column(column =>
        {
            column
                .Item()
                .ShowOnce()
                .Text("This header is visible on the first page.");
                
            column
                .Item()
                .SkipOnce()
                .Text("This header is visible on the second page and all following.");
        });
        
        page.Content()
            .PaddingVertical(10)
            .Text(Placeholders.Paragraphs())
            .FontColor(Colors.Grey.Medium);
        
        page.Footer().Text(text =>
        {
            text.Span("Page ");
            text.CurrentPageNumber();
            text.Span(" out of ");
            text.TotalPages();
        });
    });
})

exampleexample

Released under the MIT License