Method: RubyXL::WorksheetConvenienceMethods#change_column_font_color
- Defined in:
- lib/rubyXL/convenience_methods/worksheet.rb
permalink #change_column_font_color(column_index, font_color = '000000') ⇒ Object
[View source]
590 591 592 593 594 595 596 597 |
# File 'lib/rubyXL/convenience_methods/worksheet.rb', line 590 def change_column_font_color(column_index, font_color='000000') Color.validate_color(font_color) xf = get_col_xf(column_index) font = @workbook.fonts[xf.font_id].dup font.set_rgb_color(font_color) change_column_font(column_index, Worksheet::COLOR, font_color, font, xf) end |