Method: RubyXL::WorksheetConvenienceMethods#change_row_font_color

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

#change_row_font_color(row = 0, font_color = '000000') ⇒ Object


516
517
518
519
520
521
522
# File 'lib/rubyXL/convenience_methods/worksheet.rb', line 516

def change_row_font_color(row = 0, font_color = '000000')
  ensure_cell_exists(row)
  Color.validate_color(font_color)
  font = row_font(row).dup
  font.set_rgb_color(font_color)
  change_row_font(row, Worksheet::COLOR, font_color, font)
end