Method: RubyXL::WorksheetConvenienceMethods#change_row_fill
- Defined in:
- lib/rubyXL/convenience_methods/worksheet.rb
#change_row_fill(row_index = 0, rgb = 'ffffff') ⇒ Object
480 481 482 483 484 485 486 487 |
# File 'lib/rubyXL/convenience_methods/worksheet.rb', line 480 def change_row_fill(row_index = 0, rgb = 'ffffff') validate_workbook ensure_cell_exists(row_index) Color.validate_color(rgb) sheet_data.rows[row_index].style_index = @workbook.modify_fill(get_row_style(row_index), rgb) sheet_data[row_index].cells.each { |c| c.change_fill(rgb) unless c.nil? } end |