Example: Text property

This example changes the content of the second paragraph.

  TextParagraph paragraph = document.getParagraphs().item(2);
  paragraph.getRange().setText("paragraph 2");

Related information

Text property