Hi Rob,
Thanks for your inquiry. Please use Node.ToString(SaveFormat.Text) method to export the content of the node into text. Please use the following code example to get the desired output. Hope this helps you.
var doc = new Document(MyDir + "RowGetTextIssue.docx");
var builder = new DocumentBuilder(doc);
Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true);
var newRow = (Aspose.Words.Tables.Row)table.LastRow.Clone(true);
int insertLoc = (table.Rows.Count - 1) / 2;
table.Rows.Insert(insertLoc, newRow);
int i = 0;
foreach (Aspose.Words.Tables.Cell cell in newRow.Cells)
{
if (++i == 1)
{
Aspose.Words.Run run = new Aspose.Words.Run(doc, "Row Header");
cell.FirstParagraph.Runs.Add(run);
continue;
}
cell.RemoveAllChildren();
var para = new Aspose.Words.Paragraph(doc);
cell.AppendChild(para);
builder.MoveTo(para);
builder.InsertHtml("<b>Bold text..: " + i + "</b>");
}
Console.WriteLine(newRow.ToString(SaveFormat.Text));
Console.ReadLine();