# RulerBarViewGenerator.Colors.ForeColor Property

> Gets or sets the color used for the numbers 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.ForeColor Property
- **300 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/forecolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/forecolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/forecolor-property/llms-full.txt

---

### Description

Gets or sets the color used for the numbers of the ruler.

### Syntax

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

```vbnet
Public Property ForeColor As Color
```

### Examples

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

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

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

---

## Nearby

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