# RulerBarViewGenerator.Colors.RulerColor Property

> Gets or sets the color of the ruler.

- **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.Colors.RulerColor Property
- **301 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/rulercolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/rulercolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/rulercolor-property/llms-full.txt

---

### Description

Gets or sets the color of the ruler.

### Syntax

```csharp
public Color RulerColor { get; set; }
```

```vbnet
Public Property RulerColor As Color
```

### Examples

The following example uses `Colors.RulerColor` to configure ruler color as part of the colors workflow. The configured value is checked before the workflow continues.

```csharp
colors.RulerColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Ruler Color used by Colors: {colors.RulerColor}");
```

```vbnet
colors.RulerColor = System.Drawing.Color.LightSteelBlue
Console.WriteLine($"Ruler Color used by Colors: {colors.RulerColor}")
```

---

## Nearby

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