# Scrolling

> Control scroll bars and the scroll position of TXTextControl with ScrollBars, ScrollPosX and ScrollPosY and react to HScroll, VScroll and CaretOut events.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > API Reference > Programming Categories > Scrolling
- **664 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/scrolling/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/scrolling/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/scrolling/llms-full.txt

---

Scrolling in `TXTextControl` is controlled by the scroll bars and by the scroll position in both directions. The events report scrolling and tell you when the caret leaves the visible part of the control.

### Properties

| Member | Description |
|---|---|
| [`TXTextControl.ScrollBars`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/scrollbars-property/llms-full.txt) | Returns or sets a value indicating whether a `TXTextControl` has horizontal or vertical scroll bars. |
| [`TXTextControl.ScrollPosX`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/scrollposx-property/llms-full.txt) | Specifies the position of the horizontal scroll bar in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips). |
| [`TXTextControl.ScrollPosY`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/scrollposy-property/llms-full.txt) | Specifies the position of the vertical scroll bar in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips). |

### Events

| Member | Description |
|---|---|
| [`TXTextControl.AutoScroll`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/autoscroll-event/llms-full.txt) | This event occurs when the cursor leaves the visible portion of a `TXTextControl`'s client area while a text selection is being expanded with the mouse. |
| [`TXTextControl.CaretOut`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/caretout-event/llms-full.txt) | Occurs when the current input position indicated through the caret has been moved to a control that is completely out of the visible area. |
| [`TXTextControl.CaretOutBottom`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/caretoutbottom-event/llms-full.txt) | Occurs when the current input position indicated through the caret has been moved out of the visible area at the bottom. |
| [`TXTextControl.CaretOutLeft`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/caretoutleft-event/llms-full.txt) | Occurs when the current input position indicated through the caret has been moved out of the visible area at the left side. |
| [`TXTextControl.CaretOutRight`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/caretoutright-event/llms-full.txt) | Occurs when the current input position indicated through the caret has been moved out of the visible area at the right side. |
| [`TXTextControl.CaretOutTop`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/caretouttop-event/llms-full.txt) | Occurs when the current input position indicated through the caret has been moved out of the visible area at the top. |
| [`TXTextControl.HScroll`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/hscroll-event/llms-full.txt) | Occurs when the horizontal scroll position has been changed. |
| [`TXTextControl.VScroll`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/vscroll-event/llms-full.txt) | Occurs when the vertical scroll position has been changed. |

### Related Pages

- [Zooming](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/zooming/llms-full.txt): zoom factor and zoom events.
- [Line and Character Operations](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/line-character/llms-full.txt): map characters, lines and screen coordinates.

---

## Nearby

- **Previous:** [Commenting a Document](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/comments/llms-full.txt)
- **Next:** [Text Fields](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/text-fields/llms-full.txt)
