# TXDrawingControl.BorderColor Property

> Gets or sets the TX Drawing Control's border line color. The default value is System.Drawing.SystemColors.WindowText.

- **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.BorderColor Property
- **309 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/bordercolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/bordercolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/bordercolor-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 color. The default value is `System.Drawing.SystemColors.WindowText`.

### Syntax

```csharp
public Color BorderColor { get; set; }
```

```vbnet
Public Property BorderColor As Color
```

### Examples

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

```csharp
tXDrawingControl.BorderColor = System.Drawing.Color.LightSteelBlue;
tXDrawingControl.Update();
```

```vbnet
tXDrawingControl.BorderColor = System.Drawing.Color.LightSteelBlue
tXDrawingControl.Update()
```

---

## Nearby

- **Previous:** [TXDrawingControl.BackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/backcolor-property/llms-full.txt)
- **Next:** [TXDrawingControl.BorderWidth Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/borderwidth-property/llms-full.txt)
