Example: add method

This example adds a new section with 5 columns before the second paragraph.

  TextSections sections = document.getSections();
  TextSection newSection = sections.add("New section", document.getParagraphs().item(2).getRange(), 5);

Related information

add method