# Javascript: TXTextControl.RulerBarBorderStyle Enumeration

> The border style of a ruler bar.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 30.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.RulerBarBorderStyle Enumeration
- **373 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/rulerbarborderstyle-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/rulerbarborderstyle-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/rulerbarborderstyle-enumeration/llms-full.txt

---

### Description

The border style of a ruler bar.

### Members

| Member | Description |
|---|---|
| Simple3D | The ruler bar has a 3D design and no border. |
| Flat | The ruler bar has a flat design and no border. |
| Fixed3D | The ruler bar has a 3D design and a border with a single line. |
| FixedSingle | The ruler bar has has a flat design and a border with a single line. |
| ColorScheme | The ruler bar has a flat design without a border. The colors depend on the color scheme currently set through the system or on the colors set with the [displayColors](https://docs.textcontrol.com/ds-server/reference/javascript/rulerbarviewgenerator/displaycolors-property/llms-full.txt) property. |

### Examples

The following example uses `TXTextControl.RulerBarBorderStyle.Simple3D` (the ruler bar has a 3D design and no border.) in a document-editing workflow.

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

TXTextControl.rulerBar.setBorderStyle(
    TXTextControl.RulerBarBorderStyle.Simple3D,
    function() {
        console.log("set border style completed.");
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.rulerBar Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/rulerbar-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.RulerBarFormulaMode Enumeration](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/rulerbarformulamode-enumeration/llms-full.txt)
