# TextFrame.BorderColor Property

> Gets or sets the color of a text frame's border line.

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

---

### Description

Gets or sets the color of a text frame's border line.

### Syntax

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

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

### Examples

The following example applies bold formatting through the text frame's selection by using `TextFrame.BorderColor`.

```csharp
Selection formattedSelection = textFrame.Selection;
formattedSelection.Bold = true;
textFrame.Selection = formattedSelection;

textFrame.BorderColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Border Color used by Text Frame: {textFrame.BorderColor}");
```

```vbnet
Dim formattedSelection As Selection = textFrame.Selection
formattedSelection.Bold = True
textFrame.Selection = formattedSelection

textFrame.BorderColor = System.Drawing.Color.LightSteelBlue
Console.WriteLine($"Border Color used by Text Frame: {textFrame.BorderColor}")
```

---

## Nearby

- **Previous:** [TextFrame.Barcodes Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textframe/barcodes-property/llms-full.txt)
- **Next:** [TextFrame.BorderStyle Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textframe/borderstyle-property/llms-full.txt)
