# TextControl.VerticalRulerBar Property

> Specifies the vertical ruler bar control to be used with a TextControl. The property value is null if there is no ruler bar connected. Otherwise it is an object of the type RulerBar.

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

---

### Description

Specifies the vertical ruler bar control to be used with a TextControl. The property value is null if there is no ruler bar connected. Otherwise it is an object of the type [RulerBar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/rulerbar/llms-full.txt).

### Syntax

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

```vbnet
Public Property VerticalRulerBar As RulerBar
```

### Examples

The following example uses `TextControl.VerticalRulerBar` to configure vertical ruler bar as part of the text control workflow. The change is then applied to the active document or user interface.

```csharp
textControl.VerticalRulerBar = new RulerBar();
textControl.Update();
```

```vbnet
textControl.VerticalRulerBar = New RulerBar()
textControl.Update()
```

---

## Nearby

- **Previous:** [TextControl.UserNames Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/usernames-property/llms-full.txt)
- **Next:** [TextControl.VExpanded Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/vexpanded-event/llms-full.txt)
