# TextViewGenerator.DisplayColors Property

> Gets or sets display colors. The property value is an object of the type ServerVisualization.TextViewGenerator.Colors.

- **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 > TextViewGenerator.DisplayColors Property
- **595 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/displaycolors-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/displaycolors-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/displaycolors-property/llms-full.txt

---

### Description

Gets or sets display colors. The property value is an object of the type [ServerVisualization.TextViewGenerator.Colors](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/llms-full.txt).

### Syntax

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

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

### Examples

The following example applies bold formatting through the text view generator's selection by using `TextViewGenerator.DisplayColors`.

```csharp
Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;

textViewGenerator.DisplayColors = new TXTextControl.ServerVisualisation.TextViewGenerator.Colors();
if (textViewGenerator.DisplayColors != null)
{
    Console.WriteLine("Text View Generator: Display Colors is available.");
}
```

```vbnet
Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection

textViewGenerator.DisplayColors = New TXTextControl.ServerVisualisation.TextViewGenerator.Colors()
If textViewGenerator.DisplayColors IsNot Nothing Then
    Console.WriteLine("Text View Generator: Display Colors is available.")
End If
```

---

## Nearby

- **Previous:** [TextViewGenerator.DialogUnit Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/dialogunit-property/llms-full.txt)
- **Next:** [TextViewGenerator.DocumentLinkClicked Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/documentlinkclicked-event/llms-full.txt)
