# TextFrame.BorderStyle Property

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

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 30.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > TextFrame.BorderStyle Property
- **496 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/borderstyle-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/borderstyle-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/borderstyle-property/llms-full.txt

---

### Description

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

### Syntax

```csharp
public FrameStyle BorderStyle { get; set; }
```

```vbnet
Public Property BorderStyle As FrameStyle
```

### Members

| Value | Description |
|---|---|
| Single | The text frame's border line is a single line. |
| Double | The text frame's border line is a double line. |

### Examples

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

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

textFrame.BorderStyle = TXTextControl.FrameStyle.Single;
Console.WriteLine($"Border Style used by Text Frame: {textFrame.BorderStyle}");
```

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

textFrame.BorderStyle = TXTextControl.FrameStyle.Single
Console.WriteLine($"Border Style used by Text Frame: {textFrame.BorderStyle}")
```

### Remarks

The property's default value is FrameStyle.Single.

---

## Nearby

- **Previous:** [TextFrame.BorderColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/bordercolor-property/llms-full.txt)
- **Next:** [TextFrame.BorderWidth Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/borderwidth-property/llms-full.txt)
