# RulerBarViewGenerator Constructor

> Initializes a new instance of the RulerBarViewGenerator class. After initialization the Create method must be called to enable further resources.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Constructor
- **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 Constructor
- **343 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/constructor/llms-full.txt

---

### Description

Initializes a new instance of the RulerBarViewGenerator class. After initialization the [Create](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/create-method/llms-full.txt) method must be called to enable further resources.

### Syntax

```csharp
public RulerBarViewGenerator();
```

```vbnet
Public Sub New()
```

### Examples

The following example creates a Ruler Bar View Generator instance and configures its alignment setting for a document workflow.

```csharp
using TXTextControl.ServerVisualisation.RulerBarViewGenerator rulerBarViewGenerator = new();
rulerBarViewGenerator.Alignment = RulerBarAlignment.Top;
```

```vbnet
Dim rulerBarViewGenerator As New TXTextControl.ServerVisualisation.RulerBarViewGenerator()
rulerBarViewGenerator.Alignment = RulerBarAlignment.Top
```

---

## Nearby

- **Previous:** [RulerBarViewGenerator.Colors.SeparatorColorLight Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/separatorcolorlight-property/llms-full.txt)
- **Next:** [RulerBarViewGenerator.Create Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/create-method/llms-full.txt)
