-
-
Notifications
You must be signed in to change notification settings - Fork 242
Formatting
Ahmed Kamal edited this page Jun 10, 2019
·
3 revisions
book = Spreadsheet::Workbook.new
sheet = book.create_worksheet name: "Sheet 1"
row = sheet.row(1)
sheet.default_format = Spreadsheet::Format.new color: :blue
row.default_format = Spreadsheet::Format.new color: :red
row.default_format = Spreadsheet::Format.new font: Spreadsheet::Font.new("Courier New")
Spreadsheet::Font.new("Courier New", size: 14)
row.default_format = Spreadsheet::Format.new font: Spreadsheet::Font.new("Courier New", color: :red)