RestartPageNumbering Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property RestartPageNumbering As BooleanExamples
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.");
}Dim sectionFormat As SectionFormat = textControl.Sections(1).Format
sectionFormat.RestartPageNumbering = True
If sectionFormat.RestartPageNumbering Then
Console.WriteLine("Section Format: Restart Page Numbering is enabled.")
End IfRemarks
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.