# TXDrawingControl.BorderWidth Property

> Gets or sets the TX Drawing Control's border line width. The value is given in twips. The default value is 0.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDrawing.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Drawing > TXDrawingControl.BorderWidth Property
- **294 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/borderwidth-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/borderwidth-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/borderwidth-property/llms-full.txt

---

### Description

Gets or sets the [TX Drawing Control](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/llms-full.txt)'s border line width. The value is given in twips. The default value is 0.

### Syntax

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

```vbnet
Public Property BorderWidth As Integer
```

### Examples

The following example uses `TXDrawingControl.BorderWidth` to configure border width as part of the txdrawing control workflow. The change is then applied to the active document or user interface.

```csharp
tXDrawingControl.BorderWidth = 100;
tXDrawingControl.Update();
```

```vbnet
tXDrawingControl.BorderWidth = 100
tXDrawingControl.Update()
```

---

## Nearby

- **Previous:** [TXDrawingControl.BorderColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/bordercolor-property/llms-full.txt)
- **Next:** [TXDrawingControl.CanCopy Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/cancopy-property/llms-full.txt)
