This example displays the second section's name.
TextSections sections = document.getSections(); TextSection section = sections.item(2); System.out.println(section.getName());
Related information
item method