# TextViewGeneratorColors Object

> The TextViewGeneratorColors object provides methods for getting, setting or resetting the display colors of the TextControl. By default the display colors depend on sytem colors on the server. With this object all colors can be individually designed.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > TextViewGeneratorColors Object
- **1365 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/llms-full.txt

---

### Description

The TextViewGeneratorColors object provides methods for getting, setting or resetting the display colors of the TextControl. By default the display colors depend on sytem colors on the server. With this object all colors can be individually designed.

### Syntax

```javascript
TextViewGeneratorColors
```

### Examples

The following example demonstrates `TextViewGeneratorColors` in a practical document-editing workflow. The TextViewGeneratorColors object provides methods for getting, setting or resetting the display colors of the TextControl. By default the display colors depend on sytem colors on the server. With this object all colors can be individually designed.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.displayColors.getActiveFormFieldColor(
    function(result) {
        console.log("get active form field color result:", result);
    },
    onTxError
);
```

---

## In This Section

- [Javascript: TextViewGeneratorColors.getActiveFormFieldColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/getactiveformfieldcolor-method/llms-full.txt): Gets the highlight color of a form field containing the current text input position. If the property is not set, the return value is null.
- [Javascript: TextViewGeneratorColors.getDarkShadowColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/getdarkshadowcolor-method/llms-full.txt): Gets the display color for the shadow at the right and the bottom edge of the pages.
- [Javascript: TextViewGeneratorColors.getDesktopColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/getdesktopcolor-method/llms-full.txt): Gets the display color for the area around the pages.
- [Javascript: TextViewGeneratorColors.getFormFieldColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/getformfieldcolor-method/llms-full.txt): Gets the default highlight color of form fields. If the property is not set, the return value is null.
- [Javascript: TextViewGeneratorColors.getHeaderFooterLabelColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/getheaderfooterlabelcolor-method/llms-full.txt): Gets the display color for the label showing which header or footer is activated.
- [Javascript: TextViewGeneratorColors.getHeaderFooterLineColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/getheaderfooterlinecolor-method/llms-full.txt): Gets the display color for the dividing line between headers and footers and the main text.
- [Javascript: TextViewGeneratorColors.getLightShadowColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/getlightshadowcolor-method/llms-full.txt): Gets the display color for the shadow at the left and the top edge of the pages.
- [Javascript: TextViewGeneratorColors.resetDarkShadowColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/resetdarkshadowcolor-method/llms-full.txt): Resets the text control's DarkShadowColor to its system dependent default value.
- [Javascript: TextViewGeneratorColors.resetDesktopColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/resetdesktopcolor-method/llms-full.txt): Resets the text control's DesktopColor to its system dependent default value.
- [Javascript: TextViewGeneratorColors.resetHeaderFooterLabelColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/resetheaderfooterlabelcolor-method/llms-full.txt): Resets the text control's HeaderFooterLabelColor to its system dependent default value.
- [Javascript: TextViewGeneratorColors.resetHeaderFooterLineColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/resetheaderfooterlinecolor-method/llms-full.txt): Resets the text control's HeaderFooterLineColor to its system dependent default value.
- [Javascript: TextViewGeneratorColors.resetLightShadowColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/resetlightshadowcolor-method/llms-full.txt): Resets the text control's LightShadowColor to its system dependent default value.
- [Javascript: TextViewGeneratorColors.setActiveFormFieldColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/setactiveformfieldcolor-method/llms-full.txt): 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 null.
- [Javascript: TextViewGeneratorColors.setDarkShadowColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/setdarkshadowcolor-method/llms-full.txt): Sets the display color for the shadow at the right and the bottom edge of the pages.
- [Javascript: TextViewGeneratorColors.setDesktopColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/setdesktopcolor-method/llms-full.txt): Sets the display color for the area around the pages.
- [Javascript: TextViewGeneratorColors.setFormFieldColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/setformfieldcolor-method/llms-full.txt): Sets the default highlight color of a form field. To suppress highlighting the FormField the property value can be set to null.
- [Javascript: TextViewGeneratorColors.setHeaderFooterLabelColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/setheaderfooterlabelcolor-method/llms-full.txt): Sets the display color for the label showing which header or footer is activated.
- [Javascript: TextViewGeneratorColors.setHeaderFooterLineColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/setheaderfooterlinecolor-method/llms-full.txt): Sets the display color for the dividing line between headers and footers and the main text.
- [Javascript: TextViewGeneratorColors.setLightShadowColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/setlightshadowcolor-method/llms-full.txt): Sets the display color for the shadow at the left and the top edge of the pages.

---

## Nearby

- **Previous:** [Javascript: TextPastedEventArgs.textType Property](https://docs.textcontrol.com/ds-server/reference/javascript/textpastedeventargs/texttype-property/llms-full.txt)
- **Next:** [Javascript: TextViewGeneratorColors.getActiveFormFieldColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/getactiveformfieldcolor-method/llms-full.txt)
