# PageBorder.LeftDistance Property

> Gets or sets the distance, in twips, of the left border line either from the edge of the page or from the text, depending on the MeasureFromText property.

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

---

### Description

Gets or sets the distance, in twips, of the left border line either from the edge of the page or from the text, depending on the [MeasureFromText](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/pageborder/measurefromtext-property/llms-full.txt) property.

### Syntax

```csharp
public int LeftDistance { get; set; }
```

```vbnet
Public Property LeftDistance As Integer
```

### Examples

The following example configures the page border of the first document section by using `PageBorder.LeftDistance`.

```csharp
PageBorder pageBorder = textControl.Sections[1].Format.PageBorder;

pageBorder.LeftDistance = 720;
Console.WriteLine($"Left Distance used by Page Border: {pageBorder.LeftDistance}");
```

```vbnet
Dim pageBorder As PageBorder = textControl.Sections(1).Format.PageBorder

pageBorder.LeftDistance = 720
Console.WriteLine($"Left Distance used by Page Border: {pageBorder.LeftDistance}")
```

### Remarks

The property's default value is [PageBorder.DefaultDistance](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/pageborder/defaultdistance-field/llms-full.txt).

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-wpf/reference/txtextcontrol/selection/iscommonvalueselected-method/llms-full.txt) method can be used to check for mixed attributes.

---

## Nearby

- **Previous:** [PageBorder.FirstPageOnly Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/pageborder/firstpageonly-property/llms-full.txt)
- **Next:** [PageBorder.LeftLineColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/pageborder/leftlinecolor-property/llms-full.txt)
