TXTextControl.ParagraphFormat.KeepLinesTogether Property

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

Introduced: 13.0.


public bool KeepLinesTogether { get; set; }
[Visual Basic]
Public Property KeepLinesTogether() As Boolean


The property's default value is false.

The property returns its default value when the text selection contains multiple paragraphs with mixed setting. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.

See Also