TableRow.BreakAcrossPages Property
Specifies whether the table row can break across pages.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v26.1.Core.dll
NuGet Package: DevExpress.RichEdit.Core
Declaration
Property Value
| Type | Description |
|---|---|
| Boolean | true to break the row across pages; otherwise, false. |
Remarks
The code sample below toggles Repeat row as header and Break row across pages options in code:
using (RichEditDocumentServer wordProcessor = new RichEditDocumentServer())
{
AdjustTableRows(wordProcessor.Document);
wordProcessor.SaveDocument("DocumentWithTables.docx",
DocumentFormat.Docx);
}
private static void AdjustTableRows(Document document)
{
Table table = document.Tables[0];
table.BeginUpdate();
//Repeat first three rows as header:
table.Rows[0].RepeatAsHeaderRow = true;
table.Rows[1].RepeatAsHeaderRow = true;
table.Rows[2].RepeatAsHeaderRow = true;
//Break last row across pages:
table.LastRow.BreakAcrossPages = true;
table.EndUpdate();
}
See Also