ContinuousSectionRestart Enum
Wordize.Layout.ContinuousSectionRestart enum. Represents different behaviors when computing page numbers in a continuous section that restarts page numbering.
ContinuousSectionRestart enumeration
Represents different behaviors when computing page numbers in a continuous section that restarts page numbering.
public enum ContinuousSectionRestart
Values
Name | Value | Description |
---|---|---|
Always | 0 | Page numbering always restarts regardless of content flow. |
FromNewPageOnly | 1 | Page numbering restarts only if there is no other content before the section on the page where the section starts. |
Examples
Shows how to control page numbering in a continuous section.
ConverterContext context = new ConverterContext();
// By default Wordize behavior matches the Microsoft Word 2019.
// If you need old behavior, repetitive to Microsoft Word 2016, use 'ContinuousSectionRestart.FromNewPageOnly'.
// Page numbering restarts only if there is no other content before the section on the page where the section starts,
// because of that the numbering will reset to 2 from the second page.
context.LayoutOptions.ContinuousSectionPageNumberingRestart = Layout.ContinuousSectionRestart.FromNewPageOnly;
Converter.Create(context)
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "LayoutOptions.ContinuousSectionPageNumberingRestart.pdf")
.Execute();
See Also
- namespace Wordize.Layout
- assembly Wordize