# KeepLinesTogether Property

> Gets or sets whether a page break is prevented within the selected paragraphs of the TXTextControl; returns False for a selection with mixed settings.

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

---

Gets or sets a value indicating whether a page break is allowed within a paragraph. If the property's value is true, a page break is not allowed. Otherwise, it is allowed. The property sets the value for all paragraphs currently selected.

Introduced: 13.0.

### Syntax

```vbscript
TXTextControl.KeepLinesTogether [= boolean]
```

### Data Types

Boolean.

### Limitations

Run time only.

### Remarks

The property returns false when the text selection contains multiple paragraphs with mixed setting.

### See Also

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

---

## Nearby

- **Previous:** [Justification Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/justification-property/llms-full.txt)
- **Next:** [KeepWithNext Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/keepwithnext-property/llms-full.txt)
