# StatusBarViewGenerator.DisplayColors Property

> Gets or sets the colors of the status bar. These colors are only used when the BorderStyle property has been set to ColorScheme. The property value is an object of the type ServerVisualization.StatusBarViewGenerator.Colors.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **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.DisplayColors Property
- **540 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator/displaycolors-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator/displaycolors-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator/displaycolors-property/llms-full.txt

---

### Description

Gets or sets the colors of the status bar. These colors are only used when the [BorderStyle](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator/borderstyle-property/llms-full.txt) property has been set to `ColorScheme`. The property value is an object of the type [ServerVisualization.StatusBarViewGenerator.Colors](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator-colors/llms-full.txt).

### Syntax

```csharp
public StatusBarViewGenerator.Colors DisplayColors { get; set; }
```

```vbnet
Public Property DisplayColors As StatusBarViewGenerator.Colors
```

### Examples

The following example uses `StatusBarViewGenerator.DisplayColors` to configure display colors as part of the status bar view generator workflow. The configured value is checked before the workflow continues.

```csharp
statusBarViewGenerator.DisplayColors = new TXTextControl.ServerVisualisation.StatusBarViewGenerator.Colors();
if (statusBarViewGenerator.DisplayColors != null)
{
    Console.WriteLine("Status Bar View Generator: Display Colors is available.");
}
```

```vbnet
statusBarViewGenerator.DisplayColors = New TXTextControl.ServerVisualisation.StatusBarViewGenerator.Colors()
If statusBarViewGenerator.DisplayColors IsNot Nothing Then
    Console.WriteLine("Status Bar View Generator: Display Colors is available.")
End If
```

---

## Nearby

- **Previous:** [StatusBarViewGenerator.Create Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator/create-method/llms-full.txt)
- **Next:** [StatusBarViewGenerator.Font Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/statusbarviewgenerator/font-property/llms-full.txt)
