Method: RubyXL::LegacyCell#change_font_color

Defined in:
lib/rubyXL/cell.rb

#change_font_color(font_color = '000000') ⇒ Object

Changes font color of cell



46
47
48
49
50
51
52
53
# File 'lib/rubyXL/cell.rb', line 46

def change_font_color(font_color='000000')
  validate_worksheet
  Color.validate_color(font_color)

  font = get_cell_font.dup
  font.set_rgb_color(font_color)
  update_font_references(font)
end