# Javascript: PageBorder.getRightLineColor Method

> Gets the color of the right border line.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 26.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: PageBorder.getRightLineColor Method
- **326 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/pageborder/getrightlinecolor-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/pageborder/getrightlinecolor-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/pageborder/getrightlinecolor-method/llms-full.txt

---

### Description

Gets the color of the right border line.

### Syntax

```javascript
<void> PageBorder.getRightLineColor(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the color of the right border line. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `PageBorder.getRightLineColor` in a practical document-editing workflow. It gets the color of the right border line.

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

function inspectRightLineColor(pageBorder) {
    pageBorder.getRightLineColor(
        function(result) {
            console.log("get right line color result:", result);
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: PageBorder.getRightDistance Method](https://docs.textcontrol.com/ds-server/reference/javascript/pageborder/getrightdistance-method/llms-full.txt)
- **Next:** [Javascript: PageBorder.getRightLineWidth Method](https://docs.textcontrol.com/ds-server/reference/javascript/pageborder/getrightlinewidth-method/llms-full.txt)
