# TXDrawingControl.BorderColor Property

> Gets or sets the TX Drawing Control's border line color.The default value is null and represents the color System.Windows.SystemColors.WindowTextColor.

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

---

### Description

Gets or sets the [TX Drawing Control](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/txdrawingcontrol/llms-full.txt)'s border line color.The default value is null and represents the color `System.Windows.SystemColors.WindowTextColor`.

### 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 configured value is checked before the workflow continues.

```csharp
tXDrawingControl.BorderColor = System.Windows.Media.Colors.CornflowerBlue;
if (tXDrawingControl.BorderColor != null)
{
    Console.WriteLine("TXDrawing Control: Border Color is available.");
}
```

```vbnet
tXDrawingControl.BorderColor = System.Windows.Media.Colors.CornflowerBlue
If tXDrawingControl.BorderColor IsNot Nothing Then
    Console.WriteLine("TXDrawing Control: Border Color is available.")
End If
```

---

## Nearby

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