Syntax
ParaWidowOrphanControl [On]
ParaWidowOrphanControl()
Remarks
The ParaWidowOrphanControl statement adds or removes the Widow/Orphan Control paragraph format for the selected paragraphs. A paragraph formatted with Widow/Orphan Control prevents a page break from leaving a single line of the paragraph at the top or bottom of a page.
Argument | Explanation | |
On | Specifies whether to add or remove the Widow/Orphan Control format: 1 Adds the Widow/Orphan Control format. 0 (zero) Removes the Widow/Orphan Control format. Omitted Toggles the Widow/Orphan Control format. |
The ParaWidowOrphanControl() function returns the following values.
Value | Explanation | |
0 (zero) | If none of the selected paragraphs are formatted with Widow/Orphan Control | |
–1 | If some of the selected paragraphs are formatted with Widow/Orphan Control | |
1 | If all the selected paragraphs are formatted with Widow/Orphan Control |
See Also
FormatParagraph, ParaKeepLinesTogether, ParaKeepWithNext, ParaPageBreakBefore