# RulerBarViewGenerator.Colors.BackColor Property

> Gets or sets the background color at the left or top edge 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.Colors.BackColor Property
- **303 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/backcolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/backcolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/backcolor-property/llms-full.txt

---

### Description

Gets or sets the background color at the left or top edge of the ruler bar.

### Syntax

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

```vbnet
Public Property BackColor As Color
```

### Examples

The following example uses `Colors.BackColor` to set the colors's background color. The configured value is checked before the workflow continues.

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

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

---

## Nearby

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