# TextViewGenerator.Colors Class

> The TextViewGenerator.Colors class gets, sets or resets the display colors of a TextViewGenerator component. By default the display colors depend on sytem colors or a default value. With this class all colors can be individually designed.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **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
- **Inherits:** `TXTextControl.ServerVisualisation.ColorBase`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > TextViewGenerator.Colors Class
- **1493 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/llms-full.txt

---

### Description

The TextViewGenerator.Colors class gets, sets or resets the display colors of a [TextViewGenerator](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/llms-full.txt) component. By default the display colors depend on sytem colors or a default value. With this class all colors can be individually designed.

### Syntax

```csharp
public sealed class TextViewGenerator.Colors : ColorBase
```

```vbnet
Public NotInheritable Class TextViewGenerator.Colors
    Inherits ColorBase
```

### Examples

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

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

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

---

## In This Section

- [TextViewGenerator.Colors.ActiveFormFieldColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/activeformfieldcolor-property/llms-full.txt): Gets or sets the highlight color of a form field containing the current text input position. To suppress highlighting the active FormField the property value can be set to Color.Transparent.
- [TextViewGenerator.Colors Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/constructor/llms-full.txt): Initializes a new instance of the TextViewGenerator.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 default values.
- [TextViewGenerator.Colors.DarkShadowColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/darkshadowcolor-property/llms-full.txt): Gets or sets the display color for the shadow at the right and the bottom edge of the pages.
- [TextViewGenerator.Colors.DesktopColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/desktopcolor-property/llms-full.txt): Gets or sets the display color for the area around the pages.
- [TextViewGenerator.Colors.FormFieldColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/formfieldcolor-property/llms-full.txt): Gets or sets the highlight color of a form field. This color can be overwritten with the TextField.HighlightColor property. To suppress highlighting a FormField the property value can be set to Color.Transparent.
- [TextViewGenerator.Colors.HeaderFooterLabelColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/headerfooterlabelcolor-property/llms-full.txt): Gets or sets the display color for the label showing which header or footer is activated.
- [TextViewGenerator.Colors.HeaderFooterLineColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/headerfooterlinecolor-property/llms-full.txt): Gets or sets the display color for the dividing line between headers and footers and the main text.
- [TextViewGenerator.Colors.LightShadowColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/lightshadowcolor-property/llms-full.txt): Gets or sets the display color for the shadow at the left and the top edge of the pages.
- [TextViewGenerator.Colors.ResetActiveFormFieldColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/resetactiveformfieldcolor-method/llms-full.txt): Resets the text control's ActiveFormFieldColor to its default value.
- [TextViewGenerator.Colors.ResetDarkShadowColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/resetdarkshadowcolor-method/llms-full.txt): Resets the text control's DarkShadowColor to its system dependent default value.
- [TextViewGenerator.Colors.ResetDesktopColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/resetdesktopcolor-method/llms-full.txt): Resets the text control's DesktopColor to its system dependent default value.
- [TextViewGenerator.Colors.ResetFormFieldColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/resetformfieldcolor-method/llms-full.txt): Resets the text control's FormFieldColor to its default value.
- [TextViewGenerator.Colors.ResetHeaderFooterLabelColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/resetheaderfooterlabelcolor-method/llms-full.txt): Resets the text control's HeaderFooterLabelColor to its system dependent default value.
- [TextViewGenerator.Colors.ResetHeaderFooterLineColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/resetheaderfooterlinecolor-method/llms-full.txt): Resets the text control's HeaderFooterLineColor to its system dependent default value.
- [TextViewGenerator.Colors.ResetLightShadowColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/resetlightshadowcolor-method/llms-full.txt): Resets the text control's LightShadowColor to its system dependent default value.

---

## Nearby

- **Previous:** [TextViewGenerator.ChartSelected Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/chartselected-event/llms-full.txt)
- **Next:** [TextViewGenerator.Colors.ActiveFormFieldColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator-colors/activeformfieldcolor-property/llms-full.txt)
