# PageBorder Constructor

> Creates a new instance of the PageBorder class.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 17.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 > PageBorder Constructor
- **559 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/pageborder/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/pageborder/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/pageborder/constructor/llms-full.txt

---

### Description

Creates a new instance of the PageBorder class.

### Syntax

#### PageBorder()

Creates an empty PageBorder object. Further properties must be set.

```csharp
public PageBorder();
```

```vbnet
Public Sub New()
```

#### PageBorder(int, int, Color)

Creates a PageBorder object with equal line widths, colors and distances from the edge of the page.

```csharp
public PageBorder(int lineWidth, int distance, Color lineColor);
```

```vbnet
Public Sub New(lineWidth As Integer, distance As Integer, lineColor As Color)
```

| Parameter | Description |
|---|---|
| lineWidth | Specifies the width for all border lines. |
| distance | Specifies the distance of the border lines from the edge of the page. |
| lineColor | Specifies the color for all border lines. |

### Examples

The following example creates a Page Border instance and configures its bottom line color setting for a document workflow.

```csharp
PageBorder pageBorder = new();
pageBorder.BottomLineColor = System.Drawing.Color.LightSteelBlue;
```

```vbnet
Dim pageBorder As New PageBorder()
pageBorder.BottomLineColor = System.Drawing.Color.LightSteelBlue
```

---

## Nearby

- **Previous:** [PageBorder.BottomLineWidth Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/pageborder/bottomlinewidth-property/llms-full.txt)
- **Next:** [PageBorder.DefaultDistance Field](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/pageborder/defaultdistance-field/llms-full.txt)
