Table of Contents

Constructor LayoutPageInfo

Namespace
DocWright.Core.Rendering
Assembly
DocWright.Core.dll

LayoutPageInfo(int, bool, LayoutHeaderFooterVariant, LayoutHeaderFooterVariant, int, string)

Initializes the description of a page.

public LayoutPageInfo(int sectionIndex, bool isFirstPageOfSection, LayoutHeaderFooterVariant headerVariant, LayoutHeaderFooterVariant footerVariant, int displayedPageNumber, string pageNumberText)

Parameters

sectionIndex int

The 0-based index of the section that started the page.

isFirstPageOfSection bool

Whether the page is the first its section starts.

headerVariant LayoutHeaderFooterVariant

The header variant the page calls for.

footerVariant LayoutHeaderFooterVariant

The footer variant the page calls for.

displayedPageNumber int

The number the page displays (restarts applied).

pageNumberText string

The number as a PAGE field without switches draws it (the section's number format).

Exceptions

ArgumentOutOfRangeException

sectionIndex is negative.

ArgumentNullException

pageNumberText is null.