# PageOrientation Property

> Sets or returns the page orientation of the section selected through SectionCurrent: 0 portrait, 1 landscape, or 2 when several sections have different values.

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

---

Returns or sets the page orientation, portrait or landscape. The [SectionCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectioncurrent-property/llms-full.txt) property determines the section or another part of the document.

Introduced: 14.0.

### Syntax

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

| Setting | Description |
|---|---|
| 0 - Portrait | The page orientation is portrait. |
| 1 - Landscape | The page orientation is landscape. |
| 2 - Different values | Get only. The property returns 2, if more than one section is specified through the [SectionCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sectioncurrent-property/llms-full.txt) property and these sections have different settings. |

### Data Types

Integer.

### See Also

- [Programming Category: Sections and Pages](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/sections-pages/llms-full.txt)

---

## Nearby

- **Previous:** [PageNumberDialog Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagenumberdialog-method/llms-full.txt)
- **Next:** [PageSelect Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pageselect-method/llms-full.txt)
