Example: Range property

This example inserts some text at the beginning of the second section.

  TextSections sections = document.getSections();
  TextSection section = sections.item(2);
  section.getRange().insertBefore("The beginning");

Related information

Range property