Class DocxPageSetup
- Namespace
- PDiffy
- Assembly
- PDiffy.dll
One section's page geometry. Lengths are in points.
public sealed record DocxPageSetup : IEquatable<DocxPageSetup>
- Inheritance
-
DocxPageSetup
- Implements
- Inherited Members
Properties
Break
How the section starts: "nextPage", "continuous", "evenPage", "oddPage" or "nextColumn", as in DocxSectionBreaks.
public string Break { get; init; }
Property Value
Columns
How many columns the text is set in.
public int Columns { get; init; }
Property Value
FooterDistance
The distance from the bottom edge of the page to the footer.
public double FooterDistance { get; init; }
Property Value
Footers
The kinds of footer the section has: "default", "first" or "even" (DocxHeaderFooterKinds).
public IReadOnlyList<string> Footers { get; init; }
Property Value
Gutter
The extra margin left for binding, 0 when there is none.
public double Gutter { get; init; }
Property Value
HeaderDistance
The distance from the top edge of the page to the header.
public double HeaderDistance { get; init; }
Property Value
Headers
The kinds of header the section has: "default", "first" or "even" (DocxHeaderFooterKinds).
public IReadOnlyList<string> Headers { get; init; }
Property Value
Height
The page height, or 0 when the section doesn't set a page size.
public double Height { get; init; }
Property Value
MarginBottom
The bottom margin, or 0 when the section doesn't set it.
public double MarginBottom { get; init; }
Property Value
MarginLeft
The left margin, or 0 when the section doesn't set it.
public double MarginLeft { get; init; }
Property Value
MarginRight
The right margin, or 0 when the section doesn't set it.
public double MarginRight { get; init; }
Property Value
MarginTop
The top margin, or 0 when the section doesn't set it.
public double MarginTop { get; init; }
Property Value
Other
A hash of the section's own settings PDiffy doesn't read, such as w:pgBorders or w:lnNumType, so changing it changes the snapshot; null when it has none. Only its own formatting counts, not what it inherits, and noise Word writes everywhere is left out.
public string? Other { get; init; }
Property Value
PageNumberFormat
The page number format, such as "decimal" or "lowerRoman".
public string? PageNumberFormat { get; init; }
Property Value
PageNumberStart
The number the section's first page gets, or null when numbering carries on from before.
public int? PageNumberStart { get; init; }
Property Value
- int?
Revision
A tracked change to the section's settings (SectionFormat), or null.
public DocxRevision? Revision { get; init; }
Property Value
TitlePage
Whether the first page has its own header and footer.
public bool TitlePage { get; init; }
Property Value
Width
The page width, or 0 when the section doesn't set a page size.
public double Width { get; init; }