Example: Range property

This example inserts some text at the beginning of the third paragraph.

  TextParagraph paragraph = document.getParagraphs().item(3);
  paragraph.getRange().insertBefore("The beginning");

Related information

Range property