# SectionFormat.RestartPageNumbering Property

> 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.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 19.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > SectionFormat.RestartPageNumbering Property
- **541 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/sectionformat/restartpagenumbering-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/sectionformat/restartpagenumbering-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/sectionformat/restartpagenumbering-property/llms-full.txt

---

### 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](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/pagenumberfield/startnumber-property/llms-full.txt) property.

### Syntax

```csharp
public bool RestartPageNumbering { get; set; }
```

```vbnet
Public Property RestartPageNumbering As Boolean
```

### Examples

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

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

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

```vbnet
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 If
```

### 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](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/selection/iscommonvalueselected-method/llms-full.txt) method can be used to check for mixed attributes.

---

## Nearby

- **Previous:** [SectionFormat.PageSize Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/sectionformat/pagesize-property/llms-full.txt)
- **Next:** [Selection Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/selection/llms-full.txt)
