I am getting the text/string value from a paragraph from a DOCX document, modifying the content and I want to set the modified string value to the same paragraph again.
I am getting the string using:
Paragraph.getText();
How to set the modified string to the same paragraph again ?
Thanks for your inquiry. All text of the document is stored in runs of text. In your case, I suggest you Run.Text property to get or set the text. You may also use following code example to remove run nodes of Paragraph and add new Run node into Paragraph.