Table of Contents

Class LayoutPageInfo

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

What a laid-out page is, as layout decided it: the section that started it, the header and footer variants it calls for, and the number it displays.

public sealed class LayoutPageInfo : IEquatable<LayoutPageInfo>
Inheritance
LayoutPageInfo
Implements
Inherited Members

Remarks

A variant is the one the page calls for by layout's rule, whether or not the section has that part: a page that calls for Even in a section without an even header draws the default one, and still says Even. So a consumer that creates the part a page lacks creates the one the page asks for.

Constructors

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

Initializes the description of a page.

Properties

DisplayedPageNumber

Gets the number the page displays, restarts (w:pgNumType/@w:start) applied.

FooterVariant

Gets the footer variant the page calls for.

HeaderVariant

Gets the header variant the page calls for.

IsFirstPageOfSection

Gets a value indicating whether the page is the first its section starts.

PageNumberText

Gets the number as a PAGE field without switches draws it, in the section's number format (v in lower roman).

SectionIndex

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

Methods

Equals(LayoutPageInfo?)
Equals(object?)
GetHashCode()