Split Table
Contents
[
Hide
]
A table, represented in the Aspose.Words Document Object Model, is made up of independent rows and cells, making it easy to split a table.
To manipulate a table to split it into two tables, we just need to move some of the rows from the original table to the new one. To do this, we need to pick the row by which we want to split the table.
We can create two tables from the original table by following these simple steps:
- Create a clone of the table without cloning the children to keep the moved rows and insert them after the original table
- Starting at the specified row, move all subsequent rows to this second table
The following code example shows how to split a table into two tables on a specific row: