# WidowOrphanLines Property

> Returns or sets the number of lines from 0 to 3 for widow/orphan control of the selected paragraphs of the TXTextControl; zero disables it.

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

---

Gets or sets the number of lines for widow/orphan control. Widow/orphan control avoids that a paragraph is started at the bottom of a page and that either, the majority of its lines, or only a few lines are displayed on the next page. This property's value determines how many lines must not be separated from the rest of the paragraph. For example, if this property is set to two, there must be at least three lines of the paragraph at the bottom of the previous page and at least three lines at the top of the next page. Otherwise, the complete paragraph is displayed on the next page. If this property is set to zero, widow/orphan control is disabled. The property sets the value for all paragraphs currently selected.

Introduced: 13.0.

### Syntax

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

### Data Types

Integer.

### Limitations

The property's value must be between 0 and 3.

Run time only.

### Remarks

The property returns 0 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:** [VScroll Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/vscroll-event/llms-full.txt)
- **Next:** [WordWrapMode Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/wordwrapmode-property/llms-full.txt)
