This example sets the first section invisible.
TextSections sections = document.getSections(); TextSection section = sections.item(1); section.setVisible(false);
Related information
Visible property