# Javascript: RulerBarViewGeneratorColors.getGradientBackColor Method

> Gets the background color at the right or bottom edge of the ruler bar.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 30.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: RulerBarViewGeneratorColors.getGradientBackColor Method
- **349 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/rulerbarviewgeneratorcolors/getgradientbackcolor-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/rulerbarviewgeneratorcolors/getgradientbackcolor-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/rulerbarviewgeneratorcolors/getgradientbackcolor-method/llms-full.txt

---

### Description

Gets the background color at the right or bottom edge of the ruler bar.

### Syntax

```javascript
<void> RulerBarViewGeneratorColors.getGradientBackColor(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

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

### Examples

The following example demonstrates `RulerBarViewGeneratorColors.getGradientBackColor` in a practical document-editing workflow. It gets the background color at the right or bottom edge of the ruler bar.

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

function inspectGradientBackColor(rulerBarViewGeneratorColors) {
    rulerBarViewGeneratorColors.getGradientBackColor(
        function(result) {
            console.log("get gradient back color result:", result);
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: RulerBarViewGeneratorColors.getForeColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/rulerbarviewgeneratorcolors/getforecolor-method/llms-full.txt)
- **Next:** [Javascript: RulerBarViewGeneratorColors.getRulerColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/rulerbarviewgeneratorcolors/getrulercolor-method/llms-full.txt)
