# TextControl.BorderThickness Property

> Gets or sets the border thickness of the Text Control. Four double values, in device-independent units (1/96th inch), describe the left, top, right, and bottom sides of the border, respectively. If only a single measure is specified, that measure is applied to all of the left, top, right, bottom values of a Thickness. If only a pair of left,top measures are specified, these measures are applied symmetrically to a Thickness: the left value is used for right; the top value is used for bottom. This is a dependency property.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.BorderThickness Property
- **455 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/borderthickness-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/borderthickness-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/borderthickness-property/llms-full.txt

---

### Description

Gets or sets the border thickness of the Text Control. Four double values, in device-independent units (1/96th inch), describe the left, top, right, and bottom sides of the border, respectively. If only a single measure is specified, that measure is applied to all of the left, top, right, bottom values of a Thickness. If only a pair of left,top measures are specified, these measures are applied symmetrically to a Thickness: the left value is used for right; the top value is used for bottom. This is a dependency property.

### Syntax

```csharp
public System.Windows.Thickness BorderThickness { get; set; }
```

```vbnet
Public Property BorderThickness() As System.Windows.Thickness
```

### Examples

The following example uses `TextControl.BorderThickness` to configure border thickness as part of the text control workflow. The configured value is checked before the workflow continues.

```csharp
textControl.BorderThickness = new System.Windows.Thickness(8);
Console.WriteLine($"Border Thickness used by Text Control: {textControl.BorderThickness}");
```

```vbnet
textControl.BorderThickness = New System.Windows.Thickness(8)
Console.WriteLine($"Border Thickness used by Text Control: {textControl.BorderThickness}")
```

---

## Nearby

- **Previous:** [TextControl.BeginUndoAction Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/beginundoaction-method/llms-full.txt)
- **Next:** [TextControl.ButtonBar Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/buttonbar-property/llms-full.txt)
