# RulerBar.Colors.BackColor Property

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

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > RulerBar.Colors.BackColor Property
- **326 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/rulerbar-colors/backcolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/rulerbar-colors/backcolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/rulerbar-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 `RulerBarColors.BackColor` to set the ruler bar colors's background color. The configured value is checked before the workflow continues.

```csharp
rulerBarColors.BackColor = System.Windows.Media.Colors.CornflowerBlue;
Console.WriteLine($"Back Color used by Ruler Bar Colors: {rulerBarColors.BackColor}");
```

```vbnet
rulerBarColors.BackColor = System.Windows.Media.Colors.CornflowerBlue
Console.WriteLine($"Back Color used by Ruler Bar Colors: {rulerBarColors.BackColor}")
```

---

## Nearby

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