Method: RubyXL::WorksheetConvenienceMethods#change_row_font_name

Defined in:
lib/rubyXL/convenience_methods/worksheet.rb

#change_row_font_name(row = 0, font_name = 'Verdana') ⇒ Object

[View source]

502
503
504
505
506
507
# File 'lib/rubyXL/convenience_methods/worksheet.rb', line 502

def change_row_font_name(row = 0, font_name = 'Verdana')
  ensure_cell_exists(row)
  font = row_font(row).dup
  font.set_name(font_name)
  change_row_font(row, Worksheet::NAME, font_name, font)
end