Constructor LayoutPageInfo
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
sectionIndexintThe 0-based index of the section that started the page.
isFirstPageOfSectionboolWhether the page is the first its section starts.
headerVariantLayoutHeaderFooterVariantThe header variant the page calls for.
footerVariantLayoutHeaderFooterVariantThe footer variant the page calls for.
displayedPageNumberintThe number the page displays (restarts applied).
pageNumberTextstringThe number as a PAGE field without switches draws it (the section's number format).
Exceptions
- ArgumentOutOfRangeException
sectionIndexis negative.- ArgumentNullException
pageNumberTextis null.