TX Text Control .NET Server

RestartPageNumbering Property

Property|Introduced in 19.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets or sets a value indicating whether page numbering is restarted at the section's beginning. The starting number is determined through the PageNumberField.StartNumber property.

Syntax

public bool RestartPageNumbering { get; set; }

Examples

The following example configures the layout of the first document section by using SectionFormat.RestartPageNumbering.

SectionFormat sectionFormat = textControl.Sections[1].Format;

sectionFormat.RestartPageNumbering = true;
if (sectionFormat.RestartPageNumbering)
{
    Console.WriteLine("Section Format: Restart Page Numbering is enabled.");
}

Remarks

The property's default value is false.

The property returns its default value when the text selection contains multiple sections with mixed setting. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.