Example: Font property

This example sets the second paragraph's font to be bold.

  TextParagraph paragraph = document.getParagraphs().item(2);
  paragraph.getRange().getFont().setbold(true);

Related information

Font property