Hi Sunny,
Thanks for your inquiry. Following code example shows how to insert a paragraph at the end of a cell.
Document doc = new Document(MyDir + "in.docx");
Table modelBody = (Table)doc.GetChild(NodeType.Table, 0, true);
Paragraph para = new Paragraph(doc);
para.AppendChild(new Run(doc, "My Text"));
modelBody.Rows[5].Cells[0].Paragraphs.Add(para);
doc.Save(MyDir + "Out.docx");
Following code example shows how to append some text at the end of last paragraph.
Document doc = new Document(MyDir + "in.docx");
Table modelBody = (Table)doc.GetChild(NodeType.Table, 0, true);
modelBody.Rows[5].Cells[0].LastParagraph.AppendChild(new Run(doc, "My Text"));
doc.Save(MyDir + "Out.docx");
You may also use CompositeNode.InsertAfter/CompositeNode.InsertBefore to insert the specified node immediately after/before the specified reference node. Please let us know if you have any more queries.