# TextDirection Property

> Returns or sets the writing direction of paragraphs, txLeftToRight or txRightToLeft, for the selection or the whole control, and 0 for mixed ones.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > TextDirection Property
- **232 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textdirection-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textdirection-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textdirection-property/llms-full.txt

---

Specifies the writing direction. A paragraph's writing direction can be either left to right or right to left.

Introduced: 20.0.

### Syntax

```vbscript
TXTextControl.TextDirection [= value]
```

| Setting | Description |
|---|---|
| txRightToLeft | The text is formatted from right to left. |
| txLeftToRight | (Default) The text is formatted from left to right. |
| 0 | Get only. The property returns 0, if more than one paragraph is selected and these paragraphs have different writing directions. |

### Data Types

Integer.

### Remarks

If the [FormatSelection](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formatselection-property/llms-full.txt) property has previously been set to True, changing this property affects only the currently selected paragraphs. If [FormatSelection](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/formatselection-property/llms-full.txt) has been set to False, the setting applies to the entire control.

### See Also

- [Programming Category: Paragraph Formatting](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/paragraph-formatting/llms-full.txt)

---

## Nearby

- **Previous:** [TextBkColor Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textbkcolor-property/llms-full.txt)
- **Next:** [TextFrameActivated Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframeactivated-event/llms-full.txt)
