# Javascript: TextViewGeneratorColors.setHeaderFooterLineColor Method

> Sets the display color for the dividing line between headers and footers and the main text.

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

---

### Description

Sets the display color for the dividing line between headers and footers and the main text.

### Syntax

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

### Parameters

| Parameter | Description |
|---|---|
| color | The display color for the dividing line between headers and footers and the main text. |
| 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.setHeaderFooterLineColor` in a practical document-editing workflow. It sets the display color for the dividing line between headers and footers and the main text.

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

TXTextControl.displayColors.setHeaderFooterLineColor(
    "#ffd54f",
    function() {
        console.log("set header footer line color completed.");
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: TextViewGeneratorColors.setHeaderFooterLabelColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/setheaderfooterlabelcolor-method/llms-full.txt)
- **Next:** [Javascript: TextViewGeneratorColors.setLightShadowColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/setlightshadowcolor-method/llms-full.txt)
