# Javascript: TextViewGeneratorColors.resetLightShadowColor Method

> Resets the text control's LightShadowColor to its system dependent default value.

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

---

### Description

Resets the text control's [LightShadowColor](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/getlightshadowcolor-method/llms-full.txt) to its system dependent default value.

### Syntax

```javascript
<void> TextViewGeneratorColors.resetLightShadowColor([<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `TextViewGeneratorColors.resetLightShadowColor` in a practical document-editing workflow. Resets the text control's LightShadowColor to its system dependent default value.

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

TXTextControl.displayColors.resetLightShadowColor(
    function() {
        console.log("reset light shadow color completed.");
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: TextViewGeneratorColors.resetHeaderFooterLineColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/resetheaderfooterlinecolor-method/llms-full.txt)
- **Next:** [Javascript: TextViewGeneratorColors.setActiveFormFieldColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/setactiveformfieldcolor-method/llms-full.txt)
