public void RowFormatDisableBreakAcrossPages()
{
Document doc = new Document(MyDir + "Table.TableAcrossPage.doc");
// Retrieve the first table in the document.
Table table = (Table)doc.GetChild(NodeType.Table, 0, true);
//ExStart
//ExFor:RowFormat.AllowBreakAcrossPages
//ExId:RowFormatAllowBreaks
//ExSummary:Shows how to disable rows breaking across pages for every row in a table.
// Disable breaking across pages for all rows in the table.
foreach(Row row in table)
row.RowFormat.AllowBreakAcrossPages = false;
//ExEnd
doc.Save(MyDir + @"\Artifacts\Table.DisableBreakAcrossPages.doc");
Assert.False(table.FirstRow.RowFormat.AllowBreakAcrossPages);
Assert.False(table.LastRow.RowFormat.AllowBreakAcrossPages);
}