RowFormatAllowBreakAcrossPages Property |
Namespace: Aspose.Words.Tables
// 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");