# TextViewGenerator.VerticalRulerBar Property

> Specifies the vertical ruler bar to be used with the TextViewGenerator. The property value is null, if there is no ruler bar connected. Otherwise it is an object of the type RulerBarViewGenerator. It automatically shows formatting attributes at the current text input position.

- **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 > TextViewGenerator.VerticalRulerBar Property
- **605 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/verticalrulerbar-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/verticalrulerbar-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/verticalrulerbar-property/llms-full.txt

---

### Description

Specifies the vertical ruler bar to be used with the TextViewGenerator. The property value is null, if there is no ruler bar connected. Otherwise it is an object of the type [RulerBarViewGenerator](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/llms-full.txt). It automatically shows formatting attributes at the current text input position.

### Syntax

```csharp
public RulerBarViewGenerator VerticalRulerBar { get; set; }
```

```vbnet
Public Property VerticalRulerBar As RulerBarViewGenerator
```

### Examples

The following example applies bold formatting through the text view generator's selection by using `TextViewGenerator.VerticalRulerBar`.

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

textViewGenerator.VerticalRulerBar = new TXTextControl.ServerVisualisation.RulerBarViewGenerator();
if (textViewGenerator.VerticalRulerBar != null)
{
    Console.WriteLine("Text View Generator: Vertical Ruler Bar is available.");
}
```

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

textViewGenerator.VerticalRulerBar = New TXTextControl.ServerVisualisation.RulerBarViewGenerator()
If textViewGenerator.VerticalRulerBar IsNot Nothing Then
    Console.WriteLine("Text View Generator: Vertical Ruler Bar is available.")
End If
```

---

## Nearby

- **Previous:** [TextViewGenerator.UserNames Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/usernames-property/llms-full.txt)
- **Next:** [TextViewGenerator.View Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/view-property/llms-full.txt)
