Example: Name property

This example sets the name of the font as "Times New Roman".

  Font font = range.getFont();
  font.setName("Times New Roman");

Related information

Name property