Hi Tom,
After you load the document the whole DOM is open for modification - so you can clear the contents of a table and replace it with your own - or replace the table itself - the following code for example gets the first table and replaces it with another table (which is a clone of the first one but with different color):
var listOfTables = nRichTextViewWithRibbonControl1.Widget.View.Content.GetDescendants(Nevron.Nov.Text.NTable.NTableSchema);
if (listOfTables.Count > 0)
{
NTable table = (NTable)listOfTables[0];
NTable tableClone = (NTable )table.DeepClone();
tableClone.BackgroundFill = new NColorFill(NColor.Red);
NBlock parent = table.ParentBlock;
NNode childBlocks = parent.GetChild(parent.GetChildBlocksChild());
int indexInParent = childBlocks.IndexOfChild(table);
childBlocks.RemoveChild(table);
childBlocks.InsertChild(indexInParent, tableClone);
}
Inserting a section break at a specific location is achieved with:
nRichTextViewWithRibbonControl1.Widget.View.Selection.InsertSectionBreak(ENSectionBreakType.Continuous);
Hope this helps - let us know if you meet any problems...
Best Regards,
Nevron Support Team