# Alignment Property

> Returns or sets the text alignment of a Style object as an Integer from 1 to 4 for left aligned, right aligned or centered text; available at run time only.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > Style > Alignment Property
- **123 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/style/alignment-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/style/alignment-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/style/alignment-property/llms-full.txt

---

Returns or sets the formatting style's text alignment.

### Syntax

```vbscript
Style.Alignment [= value]
```

| Setting | Description |
|---|---|
| 1 | The text is left aligned. |
| 2 | The text is right aligned. |
| 3 | Text is centered. |
| 4 | The text is centered. |

### Data Types

Integer.

### Limitations

Run time only.

### See Also

- [Programming Category: Stylesheet Programming](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/stylesheet-programming/llms-full.txt)

---

## Nearby

- **Previous:** [Style Object](https://docs.textcontrol.com/tx-text-control-activex/reference/style/llms-full.txt)
- **Next:** [Apply Method](https://docs.textcontrol.com/tx-text-control-activex/reference/style/apply-method/llms-full.txt)
