# StatusBarViewGenerator.Colors Constructor

> Initializes a new instance of the StatusBarViewGenerator.Colors class. After creating the object with this constuctor, individual colors can be set. If the Colors object is assigned to the DisplayColors property, non-set colors are reset to their system dependent default values.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **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 > StatusBarViewGenerator.Colors Constructor
- **373 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator-colors/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator-colors/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator-colors/constructor/llms-full.txt

---

### Description

Initializes a new instance of the StatusBarViewGenerator.Colors class. After creating the object with this constuctor, individual colors can be set. If the Colors object is assigned to the [DisplayColors](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator/displaycolors-property/llms-full.txt) property, non-set colors are reset to their system dependent default values.

### Syntax

```csharp
public Colors();
```

```vbnet
Public Sub New()
```

### Examples

The following example creates a Colors instance and configures its fore color setting for a document workflow.

```csharp
TXTextControl.ServerVisualisation.StatusBarViewGenerator.Colors colors = new();
colors.ForeColor = System.Drawing.Color.LightSteelBlue;
```

```vbnet
Dim colors As New TXTextControl.ServerVisualisation.StatusBarViewGenerator.Colors()
colors.ForeColor = System.Drawing.Color.LightSteelBlue
```

---

## Nearby

- **Previous:** [StatusBarViewGenerator.Colors.BackColorTop Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator-colors/backcolortop-property/llms-full.txt)
- **Next:** [StatusBarViewGenerator.Colors.ForeColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator-colors/forecolor-property/llms-full.txt)
