# Direction Property

> Gets or sets whether a TXRulerBar is shown as a horizontal ruler (txHorizontal, the default) or as a vertical ruler (txVertical) beside the document.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXRulerBar > Direction Property
- **129 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txrulerbar/direction-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txrulerbar/direction-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txrulerbar/direction-property/llms-full.txt

---

Gets or sets a value specifying the direction of the ruler bar in the document. Depending on the direction either a horizontal or a vertical ruler is displayed.

Introduced: 13.0.

### Syntax

```vbscript
TXRulerBar.Direction [= value]
```

| Setting | Description |
|---|---|
| 0 - txHorizontal | (Default). Paints a horizontal ruler bar. |
| 1 - txVertical | Paints a vertical ruler bar. |

### Data Types

Integer.

### See Also

- [Programming Category: Tool Bars](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/toolbars/llms-full.txt)

---

## Nearby

- **Previous:** [BorderStyle Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txrulerbar/borderstyle-property/llms-full.txt)
- **Next:** [DisplayColor Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txrulerbar/displaycolor-property/llms-full.txt)
