# TXDrawingCore.BorderWidth Property

> Gets or sets the border line width of the canvas. The value is given in twips. The default value is 0.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 33.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXDrawing.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXDrawing.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Drawing > TXDrawingCore.BorderWidth Property
- **314 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/txdrawingcore/borderwidth-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/txdrawingcore/borderwidth-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/txdrawingcore/borderwidth-property/llms-full.txt

---

### Description

Gets or sets the border line width of the canvas. 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 `TXDrawingCore.BorderWidth` to configure border width as part of the txdrawing core workflow. The configured value is checked before the workflow continues.

```csharp
tXDrawingCore.BorderWidth = 100;
Console.WriteLine($"Border Width used by TXDrawing Core: {tXDrawingCore.BorderWidth}");
```

```vbnet
tXDrawingCore.BorderWidth = 100
Console.WriteLine($"Border Width used by TXDrawing Core: {tXDrawingCore.BorderWidth}")
```

---

## Nearby

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