# HeaderFooter.Section Property

> Returns the number of the section to which the header or footer belongs. The sections of the document are numbered beginning with 1. This property returns zero, if the header or footer object does not represent a single header or footer.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 22.0
- **Namespace:** `TXTextControl.Web`
- **Package:** `TXTextControl.Web` (assembly `TXTextControl.Web.DocumentEditor.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web > HeaderFooter.Section Property
- **324 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/section-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/section-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/section-property/llms-full.txt

---

### Description

Returns the number of the section to which the header or footer belongs. The sections of the document are numbered beginning with 1. This property returns zero, if the header or footer object does not represent a single header or footer.

### Syntax

```csharp
public int Section { get; }
```

```vbnet
Public ReadOnly Property Section As Integer
```

### Examples

The following example checks `HeaderFooter.Section` before continuing the web document workflow.

```csharp
var configuredValue = headerFooter.Section;
Console.WriteLine($"Section used by Header Footer: {configuredValue}");
```

```vbnet
Dim configuredValue = headerFooter.Section
Console.WriteLine($"Section used by Header Footer: {configuredValue}")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [HeaderFooter Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/llms-full.txt)
- **Next:** [HeaderFooter.Type Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/headerfooter/type-property/llms-full.txt)
