Edit Text

Edit text in an existing Word document using IronWord by locating the text in the document tree and changing its content. The code example above accesses a TextRun located in the first paragraph. Then, it changes the TextRun content to "This is the edited text." This action will only alter the text content, leaving any associated styling with that TextRun unchanged.