RowFormatAllowBreakAcrossPages Property

True if the text in a table row is allowed to split across a page break.

Namespace:  Aspose.Words.Tables
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public bool AllowBreakAcrossPages { get; set; }

Property Value

Type: Boolean
Examples
Shows how to disable rows breaking across pages for every row in a table.
// Disable breaking across pages for all rows in the table
Document doc = new Document(MyDir + "Table spanning two pages.docx");

// Retrieve the first table in the document
Table table = (Table) doc.GetChild(NodeType.Table, 0, true);

foreach (Row row in table.OfType<Row>())
    row.RowFormat.AllowBreakAcrossPages = false;

doc.Save(ArtifactsDir + "Table.DisableBreakAcrossPages.docx");
See Also