# RulerBarViewGenerator.BorderStyle Property

> Gets or sets the border style of the ruler bar.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > RulerBarViewGenerator.BorderStyle Property
- **499 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/borderstyle-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/borderstyle-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/borderstyle-property/llms-full.txt

---

### Description

Gets or sets the border style of the ruler bar.

### Syntax

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

```vbnet
Public Property BorderStyle As RulerBarBorderStyle
```

### Members

| Value | Description |
|---|---|
| ColorScheme | The ruler bar has a flat design without a border. The colors depend on the color scheme currently set through the system or on the colors set with the [DisplayColors](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/displaycolors-property/llms-full.txt) property. |
| Flat | The ruler bar has a flat design and no border. |
| FixedSingle | The ruler bar has has a flat design and a border with a single line. |
| Simple3D | The ruler bar has a 3D design and no border. |
| Fixed3D | The ruler bar has a 3D design and a border with a single line. |

### Examples

The following example uses `RulerBarViewGenerator.BorderStyle` to configure border style as part of the ruler bar view generator workflow. The configured value is checked before the workflow continues.

```csharp
rulerBarViewGenerator.BorderStyle = RulerBarBorderStyle.Simple3D;
Console.WriteLine($"Border Style used by Ruler Bar View Generator: {rulerBarViewGenerator.BorderStyle}");
```

```vbnet
rulerBarViewGenerator.BorderStyle = RulerBarBorderStyle.Simple3D
Console.WriteLine($"Border Style used by Ruler Bar View Generator: {rulerBarViewGenerator.BorderStyle}")
```

---

## Nearby

- **Previous:** [RulerBarViewGenerator.Alignment Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/alignment-property/llms-full.txt)
- **Next:** [RulerBarViewGenerator.Colors Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/llms-full.txt)
