# StatusBar.Colors.ForeColor Property

> Gets or sets the color used for text and numbers.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.1
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > StatusBar.Colors.ForeColor Property
- **299 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/statusbar-colors/forecolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/statusbar-colors/forecolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/statusbar-colors/forecolor-property/llms-full.txt

---

### Description

Gets or sets the color used for text and numbers.

### 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:** [StatusBar.Colors Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/statusbar-colors/constructor/llms-full.txt)
- **Next:** [StatusBar.Colors.FrameColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/statusbar-colors/framecolor-property/llms-full.txt)
