# SectionFormat.PageBorder Property

> Gets or sets the attributes of a section's page border. The property's value is an object of the type PageBorder.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 17.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 for Windows Forms > Reference > TXTextControl > SectionFormat.PageBorder Property
- **461 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/sectionformat/pageborder-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/sectionformat/pageborder-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/sectionformat/pageborder-property/llms-full.txt

---

### Description

Gets or sets the attributes of a section's page border. The property's value is an object of the type [PageBorder](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/pageborder/llms-full.txt).

### Syntax

```csharp
public PageBorder PageBorder { get; set; }
```

```vbnet
Public Property PageBorder As PageBorder
```

### Examples

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

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

sectionFormat.PageBorder = new PageBorder();
if (sectionFormat.PageBorder != null)
{
    Console.WriteLine("Section Format: Page Border is available.");
}
```

```vbnet
Dim sectionFormat As SectionFormat = textControl.Sections(1).Format

sectionFormat.PageBorder = New PageBorder()
If sectionFormat.PageBorder IsNot Nothing Then
    Console.WriteLine("Section Format: Page Border is available.")
End If
```

---

## Nearby

- **Previous:** [SectionFormat.Landscape Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/sectionformat/landscape-property/llms-full.txt)
- **Next:** [SectionFormat.PageMargins Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/sectionformat/pagemargins-property/llms-full.txt)
