Example: Italic property

This example sets the font to be italic.

  Font font = range.getFont();
  font.setItalic(true);

Related information

Italic property