Example: Name property

This example sets a new name for the second section.

  TextSections sections = document.getSections();
  TextSection section = sections.item(2);
  section.setName("The second section");

Related information

Name property