Hi
Thanks for your inquiry. Please see the following link to learn more about Aspose.Words.Document object model.
https://docs.aspose.com/words/net/aspose-words-document-object-model/
In your case you can use the following code
// Open document and create DocumentBuilder
Document doc = new Document(@"Test154\in.doc");
DocumentBuilder builder = new DocumentBuilder(doc);
// Move document builder to table cell
builder.MoveToCell(4, 1, 1, 0);
// Remove old value
CompositeNode cell1 = (Cell)builder.CurrentNode.GetAncestor(NodeType.Cell);
foreach (Run run in cell1.GetChildNodes(NodeType.Run, true))
{
run.Text = string.Empty;
}
// Insert new value
builder.Write("This is new value");
// Move cursor to another cell
builder.MoveToCell(4, 2, 1, 0);
// Remove old value
CompositeNode cell2 = (Cell)builder.CurrentNode.GetAncestor(NodeType.Cell);
foreach (Run run in cell2.GetChildNodes(NodeType.Run, true))
{
run.Text = string.Empty;
}
// Insert new value
builder.Write("This is new value");
// Save output document
doc.Save(@"Test154\out.doc");
Hope this helps.
Best regards.