Font

This class contains the font attributes (font name, font size, color, and so on) for an object.

Properties

Bold through isBold and setBold

Color through getColor and setColor

Height through getHeight and setHeight

Italic through isItalic and setItalic

Name through getName and setName

Strikethrough through isStrikethrough and setStrikethrough

Underline through isUnderline and setUnderline

Weight through getWeight and setWeight

Access
  • To get the font of a spreadsheet range, use the Font property in the Range class.
  • To get the font of a document range, use the Font property in the TextRange class.
See examples

Example: Font